Table of Contents

Class LiveLogLevel

Namespace
RDCore.SDK.Server.Logging
Assembly
RDCore.SDK.dll

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

minimum LogLevel

The 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

LogLevel

Methods

IsEnabled(LogLevel)

Whether a message of a level is written.

public bool IsEnabled(LogLevel level)

Parameters

level LogLevel

The level of the message.

Returns

bool