Table of Contents

Class SerilogDynamicProvider

Namespace
Steeltoe.Extensions.Logging.SerilogDynamicLogger
Assembly
Steeltoe.Extensions.Logging.SerilogDynamicLogger.dll
public class SerilogDynamicProvider : DynamicLoggerProviderBase, IDynamicLoggerProvider, ILoggerProvider, IDisposable
Inheritance
SerilogDynamicProvider
Implements
Inherited Members

Constructors

SerilogDynamicProvider(IConfiguration, Logger, LoggingLevelSwitch, ISerilogOptions)

[Obsolete("Will be removed in a future release; Use SerilogDynamicProvider(IConfiguration, ISerilogOptions, Logger, LoggingLevelSwitch) instead")]
public SerilogDynamicProvider(IConfiguration configuration, Logger logger, LoggingLevelSwitch loggingLevelSwitch, ISerilogOptions options = null)

Parameters

configuration IConfiguration
logger Logger
loggingLevelSwitch LoggingLevelSwitch
options ISerilogOptions

SerilogDynamicProvider(IConfiguration, ISerilogOptions, Logger, LoggingLevelSwitch)

Initializes a new instance of the SerilogDynamicProvider class. Any Serilog settings can be passed in the IConfiguration as needed.

[Obsolete("Will be removed in a future release; Use SerilogDynamicProvider(IOptionsMonitor<SerilogOptions>, IEnumerable<IDynamicMessageProcessor>) instead ")]
public SerilogDynamicProvider(IConfiguration configuration, ISerilogOptions options, Logger logger = null, LoggingLevelSwitch loggingLevelSwitch = null)

Parameters

configuration IConfiguration

Serilog readable IConfiguration

options ISerilogOptions

Subset of Serilog options managed by wrapperISerilogOptions

logger Logger

Serilog loggerLogger

loggingLevelSwitch LoggingLevelSwitch

Serilog global log level switchLoggingLevelSwitch

SerilogDynamicProvider(IOptionsMonitor<SerilogOptions>, IEnumerable<IDynamicMessageProcessor>)

Initializes a new instance of the SerilogDynamicProvider class.

public SerilogDynamicProvider(IOptionsMonitor<SerilogOptions> serilogOptionsMonitor, IEnumerable<IDynamicMessageProcessor> messageProcessors = null)

Parameters

serilogOptionsMonitor IOptionsMonitor<SerilogOptions>

Serilog Options Monitor SerilogOptions

messageProcessors IEnumerable<IDynamicMessageProcessor>

Any message processors IDynamicMessageProcessor