Add(String, LogLevel, ReadOnlySpan, Boolean) Method

Definition

Assembly XenoAtom.Logging.dll

Adds or updates a logger configuration with a minimum level and writers.

public void Add(string name, LogLevel level, ReadOnlySpan<LogWriterConfig> writerConfigs, bool includeParents = true)

Parameters

name
String

The logger category name.

level
LogLevel

The minimum level for the category.

writerConfigs
ReadOnlySpan<LogWriterConfig>

The writer configurations to attach.

includeParents
Boolean

Whether parent logger writers are inherited.