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
IConfigurationlogger
LoggerloggingLevelSwitch
LoggingLevelSwitchoptions
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
IConfigurationSerilog readable IConfiguration
options
ISerilogOptionsSubset of Serilog options managed by wrapperISerilogOptions
logger
LoggerSerilog loggerLogger
loggingLevelSwitch
LoggingLevelSwitchSerilog 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