Open sandboxFocus

Class ConsoleLoggingBackendOptions

Options the for ConsoleLoggingBackend class.

Inheritance
ConsoleLoggingBackendOptions
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class ConsoleLoggingBackendOptions : TextLoggingBackendOptions

Constructors

Name Description
ConsoleLoggingBackendOptions()

Initializes a new ConsoleLoggingBackendOptions.

Properties

Name Description
IncludeLevel

Determines whether the LogLevel should be written to the console. The default value is true.

IncludeRole

Determines whether the role should be written to the console. The default value is true.

IncludeTimestamp

Determines whether the current date and time should be written to the console. The default value is false.

PreferSystemColors

When true, the console logger will not attempt to use VT ANSI codes to format the output.

Prefix

Gets or sets the arbitrary string inserted before any console output. The default value is null.

RoleWidth

Minimal width of the role column. The default value is 6.

Theme

Gets the color theme. A set of ready-made themes are exposed on the ConsoleThemes class.

TimestampFormat

Gets or sets the formatting string used to render a value of the DateTimeOffset type when the IncludeTimestamp property is set to true. The default value is null.