XUnitLoggerOptions Class

public sealed class XUnitLoggerOptions

No documentation is available.

Constructors

NameDescription
XUnitLoggerOptions()

XUnitLoggerOptions()

public XUnitLoggerOptions()

No documentation is available.

Properties

NameDescription
IncludeCategoryIncludes category when true.
IncludeLogLevelIncludes log level when true.
IncludeScopesIncludes scopes when true.
TimestampFormatGets or sets format string used to format timestamp in logging messages. Defaults to null.
UseUtcTimestampGets or sets indication whether or not UTC timezone should be used to format timestamps in logging messages. Defaults to false.

IncludeCategory

XUnitLoggerOptions.cs

Includes category when true.

public bool IncludeCategory { get; set; }

Property value

bool

IncludeLogLevel

XUnitLoggerOptions.cs

Includes log level when true.

public bool IncludeLogLevel { get; set; }

Property value

bool

Includes scopes when true.

public bool IncludeScopes { get; set; }

Property value

bool

TimestampFormat

XUnitLoggerOptions.cs

Gets or sets format string used to format timestamp in logging messages. Defaults to null.

public string? TimestampFormat { get; set; }

Property value

string?

UseUtcTimestamp

XUnitLoggerOptions.cs

Gets or sets indication whether or not UTC timezone should be used to format timestamps in logging messages. Defaults to false.

public bool UseUtcTimestamp { get; set; }

Property value

bool