Interface IDynamicLoggerProvider
Provides access to
Namespace: Steeltoe.Logging
Assembly: Steeltoe.Logging.Abstractions.dll
Syntax
public interface IDynamicLoggerProvider
Methods
| Edit this page View SourceGetLogLevels()
Gets the list of logger categories in use, with their minimum log levels.
Declaration
ICollection<DynamicLoggerState> GetLogLevels()
Returns
Type | Description |
---|---|
ICollection<DynamicLoggerState> |
RefreshConfiguration(LogLevelsConfiguration)
Refreshes the internally-tracked minimum log levels per logger category, originating from configuration.
Declaration
void RefreshConfiguration(LogLevelsConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
LogLevelsConfiguration | configuration | The updated minimum log levels per logger category. |
SetLogLevel(String, Nullable<LogLevel>)
Changes the minimum log level for the specified logger category and its descendants.
Declaration
void SetLogLevel(string categoryName, LogLevel? minLevel)
Parameters
Type | Name | Description |
---|---|---|
System.String | categoryName | The logger category name, which is typically a namespace or fully-qualified type name. An empty string represents the default minimum log level. |
System.Nullable<LogLevel> | minLevel | The minimum log level to activate, or |