Table of Contents

Class LoggerOptions

Namespace
Backdash.Options
Assembly
Backdash.dll

Specifies options common to logging.

public sealed record LoggerOptions : IEquatable<LoggerOptions>
Inheritance
LoggerOptions
Implements
Inherited Members

Constructors

LoggerOptions(LogLevel)

Specifies options common to logging.

public LoggerOptions(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; set; }

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; set; }

Property Value

bool

AppendTimestamps

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

public bool AppendTimestamps { get; set; }

Property Value

bool

EnabledLevel

Gets or sets the enabled LogLevel.

public LogLevel EnabledLevel { get; set; }

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; set; }

Property Value

string

Methods

Equals(LoggerOptions?)

public bool Equals(LoggerOptions? other)

Parameters

other LoggerOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

RawLogs()

Output text logs only

public LoggerOptions RawLogs()

Returns

LoggerOptions

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LoggerOptions?, LoggerOptions?)

public static bool operator ==(LoggerOptions? left, LoggerOptions? right)

Parameters

left LoggerOptions
right LoggerOptions

Returns

bool

operator !=(LoggerOptions?, LoggerOptions?)

public static bool operator !=(LoggerOptions? left, LoggerOptions? right)

Parameters

left LoggerOptions
right LoggerOptions

Returns

bool