Class LoggerSettingsConfiguration
- Namespace
- Serilog.Configuration
- Assembly
- Serilog.dll
Allows additional setting sources to drive the logger configuration.
public class LoggerSettingsConfiguration
- Inheritance
-
LoggerSettingsConfiguration
- Inherited Members
Methods
KeyValuePairs(IEnumerable<KeyValuePair<string, string>>)
Apply settings specified in the Serilog key-value setting format to the logger configuration.
public LoggerConfiguration KeyValuePairs(IEnumerable<KeyValuePair<string, string>> settings)
Parameters
settings
IEnumerable<KeyValuePair<string, string>>A list of key-value pairs describing logger settings.
Returns
- LoggerConfiguration
Configuration object allowing method chaining.
Remarks
In case of duplicate keys, the last value for the key is kept and the previous ones are ignored.
Exceptions
- ArgumentNullException
When
settings
isnull
Settings(ILoggerSettings)
Apply external settings to the logger configuration.
public LoggerConfiguration Settings(ILoggerSettings settings)
Parameters
settings
ILoggerSettings
Returns
- LoggerConfiguration
Configuration object allowing method chaining.
Exceptions
- ArgumentNullException
When
settings
isnull