Table of Contents

Interface IDynamicLoggerProvider

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

Provides access to ILogger categories and their minimum log levels.

public interface IDynamicLoggerProvider : ILoggerProvider, IDisposable
Inherited Members

Methods

GetLogLevels()

Gets the list of logger categories in use, with their minimum log levels.

ICollection<DynamicLoggerState> GetLogLevels()

Returns

ICollection<DynamicLoggerState>

RefreshConfiguration(LogLevelsConfiguration)

Refreshes the internally-tracked minimum log levels per logger category, originating from configuration.

void RefreshConfiguration(LogLevelsConfiguration configuration)

Parameters

configuration LogLevelsConfiguration

The updated minimum log levels per logger category.

SetLogLevel(string, LogLevel?)

Changes the minimum log level for the specified logger category and its descendants.

void SetLogLevel(string categoryName, LogLevel? minLevel)

Parameters

categoryName string

The logger category name, which is typically a namespace or fully-qualified type name. An empty string represents the default minimum log level.

minLevel LogLevel?

The minimum log level to activate, or null to reset the level.