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
configurationIConfigurationloggerLoggerloggingLevelSwitchLoggingLevelSwitchoptionsISerilogOptions
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
configurationIConfigurationSerilog readable IConfiguration
optionsISerilogOptionsSubset of Serilog options managed by wrapperISerilogOptions
loggerLoggerSerilog loggerLogger
loggingLevelSwitchLoggingLevelSwitchSerilog 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
serilogOptionsMonitorIOptionsMonitor<SerilogOptions>Serilog Options Monitor SerilogOptions
messageProcessorsIEnumerable<IDynamicMessageProcessor>Any message processors IDynamicMessageProcessor