Open sandboxFocus

Class ConsoleLoggingBackendOptions

Options for the 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 instance of the ConsoleLoggingBackendOptions class.

Properties

Name Description
IncludeLevel

Gets or sets a value indicating whether the LogLevel should be written to the console. The default value is true.

IncludeRole

Gets or sets a value indicating whether the role should be written to the console. The default value is true.

IncludeTimestamp

Gets or sets a value indicating whether the current date and time should be written to the console. The default value is false.

PreferSystemColors

Gets or sets a value indicating whether the console logger prefers system colors. When true, the console logger does 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

Gets or sets the minimum width of the role column. The default value is 6.

Theme

Gets or sets the color theme. A set of ready-made themes is exposed on the ConsoleThemes class. The default value is Classic.

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.

See Also