Class LoggingConfiguration
- Namespace
- Icy.Configuration
- Assembly
- IcyUI.dll
Describes where IcyUI's log messages go: either a whole ILoggerFactory supplied by the game, or IcyUI's own minimal factory feeding the Providers at or above MinimumLevel.
public sealed class LoggingConfiguration
- Inheritance
-
LoggingConfiguration
- Inherited Members
- Extension Methods
Remarks
The engine integrations add a default provider (Stride's log on Stride, the debugger's output window on
MonoGame). Set Factory to send everything to your own logging setup instead, for example a
factory created with LoggerFactory.Create(b => b.AddConsole()).
IcyUI never disposes a Factory it didn't create.
Properties
Factory
Gets or sets a logger factory that replaces IcyUI's own. When it's set, MinimumLevel and Providers are ignored and filtering is the factory's job.
public ILoggerFactory? Factory { get; set; }
Property Value
MinimumLevel
public LogLevel MinimumLevel { get; set; }
Property Value
Providers
Gets the providers IcyUI's own factory writes to. Empty means nothing is logged.
public IList<ILoggerProvider> Providers { get; }