Class DynamicLoggerState
Represents a logger category with its configured and effective minimum LogLevel.
public sealed class DynamicLoggerState
- Inheritance
-
DynamicLoggerState
- Inherited Members
Constructors
DynamicLoggerState(string, LogLevel?, LogLevel)
Initializes a new instance of the DynamicLoggerState class.
public DynamicLoggerState(string categoryName, LogLevel? backupMinLevel, LogLevel effectiveMinLevel)
Parameters
categoryName
stringThe logger category name, which is typically a namespace or fully-qualified type name.
backupMinLevel
LogLevel?The minimum log level before it was dynamically changed. If not
null
, this entry can be reset.effectiveMinLevel
LogLevelThe currently active minimum log level.
Properties
BackupMinLevel
Gets the minimum log level before it was dynamically changed. If not null
, this entry can be reset. Value can be the same as
EffectiveMinLevel.
public LogLevel? BackupMinLevel { get; }
Property Value
CategoryName
Gets the logger category name, which is typically a namespace or fully-qualified type name.
public string CategoryName { get; }
Property Value
EffectiveMinLevel
Gets the currently active minimum log level.
public LogLevel EffectiveMinLevel { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.