Class LiveLogLevel
The least level of a message a component's logs write, as it is now: TraceLevel, which takes effect while the component runs (Live).
public sealed class LiveLogLevel
- Inheritance
-
LiveLogLevel
- Inherited Members
Remarks
It is what the filter of a component's logging reads for each message (ConfigureExternalLogging(IServiceCollection, ILoggingBuilder, IConfiguration)): a provider that is added with a level of its own is added with Trace, and this decides.
Constructors
LiveLogLevel(LogLevel)
The least level of a message a component's logs write, as it is now: TraceLevel, which takes effect while the component runs (Live).
public LiveLogLevel(LogLevel minimum)
Parameters
minimumLogLevelThe level the component starts with.
Remarks
It is what the filter of a component's logging reads for each message (ConfigureExternalLogging(IServiceCollection, ILoggingBuilder, IConfiguration)): a provider that is added with a level of its own is added with Trace, and this decides.
Properties
Minimum
The least level a message is written at; None writes none.
public LogLevel Minimum { get; set; }
Property Value
Methods
IsEnabled(LogLevel)
Whether a message of a level is written.
public bool IsEnabled(LogLevel level)
Parameters
levelLogLevelThe level of the message.