Table of Contents

Class DynamicLoggerState

Namespace
Steeltoe.Logging
Assembly
Steeltoe.Logging.Abstractions.dll

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 string

The 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 LogLevel

The 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

LogLevel?

CategoryName

Gets the logger category name, which is typically a namespace or fully-qualified type name.

public string CategoryName { get; }

Property Value

string

EffectiveMinLevel

Gets the currently active minimum log level.

public LogLevel EffectiveMinLevel { get; }

Property Value

LogLevel

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.