Class LogOptions
Specifies options common to logging
public sealed class LogOptions
- Inheritance
-
LogOptions
- Inherited Members
Constructors
LogOptions(LogLevel)
Specifies options common to logging
public LogOptions(LogLevel level = LogLevel.Warning)
Parameters
level
LogLevelEnabledLevel value.
Properties
AppendLevel
Gets or sets a value indicating whether level name should be prepended to logs.
public bool AppendLevel { get; init; }
Property Value
AppendThreadId
Gets or sets a value indicating whether thread id should be prepended to logs.
public bool AppendThreadId { get; init; }
Property Value
AppendTimestamps
Gets or sets a value indicating whether timestamps should be prepended to logs.
public bool AppendTimestamps { get; init; }
Property Value
EnabledLevel
Gets or sets the enabled LogLevel
public LogLevel EnabledLevel { get; init; }
Property Value
TimestampFormat
Gets or sets a value indicating whether the format for log timestamps.
public string TimestampFormat { get; init; }