Interface IDynamicLoggerProvider
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
RefreshConfiguration(LogLevelsConfiguration)
Refreshes the internally-tracked minimum log levels per logger category, originating from configuration.
void RefreshConfiguration(LogLevelsConfiguration configuration)
Parameters
configuration
LogLevelsConfigurationThe 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)