Table of Contents

Class LogOptions

Namespace
Backdash.Core
Assembly
Backdash.dll

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 LogLevel

EnabledLevel value.

Properties

AppendLevel

Gets or sets a value indicating whether level name should be prepended to logs. Defaults to true

public bool AppendLevel { get; init; }

Property Value

bool

AppendThreadId

Gets or sets a value indicating whether thread id should be prepended to logs. Defaults to false

public bool AppendThreadId { get; init; }

Property Value

bool

AppendTimestamps

Gets or sets a value indicating whether timestamps should be prepended to logs. Defaults to true

public bool AppendTimestamps { get; init; }

Property Value

bool

EnabledLevel

Gets or sets the enabled LogLevel

public LogLevel EnabledLevel { get; init; }

Property Value

LogLevel

TimestampFormat

Gets or sets a value indicating whether the format for log timestamps. Defaults to "mm:ss.fff"

public string TimestampFormat { get; init; }

Property Value

string