Class DynamicLoggerState
Represents a logger category with its configured and effective minimum
Inheritance
System.Object
DynamicLoggerState
Namespace: Steeltoe.Logging
Assembly: Steeltoe.Logging.Abstractions.dll
Syntax
public sealed class DynamicLoggerState : object
Constructors
| Edit this page View SourceDynamicLoggerState(String, Nullable<LogLevel>, LogLevel)
Initializes a new instance of the DynamicLoggerState class.
Declaration
public DynamicLoggerState(string categoryName, LogLevel? backupMinLevel, LogLevel effectiveMinLevel)
Parameters
Type | Name | Description |
---|---|---|
System.String | categoryName | The logger category name, which is typically a namespace or fully-qualified type name. |
System.Nullable<LogLevel> | backupMinLevel | The minimum log level before it was dynamically changed. If not |
LogLevel | effectiveMinLevel | The currently active minimum log level. |
Properties
| Edit this page View SourceBackupMinLevel
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.
Declaration
public LogLevel? BackupMinLevel { get; }
Property Value
Type | Description |
---|---|
System.Nullable<LogLevel> |
CategoryName
Gets the logger category name, which is typically a namespace or fully-qualified type name.
Declaration
public string CategoryName { get; }
Property Value
Type | Description |
---|---|
System.String |
EffectiveMinLevel
Gets the currently active minimum log level.
Declaration
public LogLevel EffectiveMinLevel { get; }
Property Value
Type | Description |
---|---|
LogLevel |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |