Table of Contents

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

ILoggerFactory

MinimumLevel

Gets or sets the lowest level IcyUI's own factory passes to Providers. Defaults to Warning.

public LogLevel MinimumLevel { get; set; }

Property Value

LogLevel

Providers

Gets the providers IcyUI's own factory writes to. Empty means nothing is logged.

public IList<ILoggerProvider> Providers { get; }

Property Value

IList<ILoggerProvider>