ConsoleLoggingBackendOptions Class |
PostSharp.Patterns.Diagnostics.LoggingBackendOptions
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackendOptions
PostSharp.Patterns.Diagnostics.Backends.Console.ConsoleLoggingBackendOptions
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
public class ConsoleLoggingBackendOptions : TextLoggingBackendOptions
The ConsoleLoggingBackendOptions type exposes the following members.
Name | Description | |
---|---|---|
ConsoleLoggingBackendOptions |
Initializes a new ConsoleLoggingBackendOptions.
|
Name | Description | |
---|---|---|
ActionMaxLength |
Max length of a log record. The default value is 2048.
(Inherited from TextLoggingBackendOptions.) | |
AppendTrailingPeriod |
Determines whether log messages should be ended with a trailing period. The default value is true
because we really like trailing periods at PostSharp, but other opinions are valid.
(Inherited from TextLoggingBackendOptions.) | |
ContextMaxLength |
Max length of the Description property.
(Inherited from LoggingBackendOptions.) | |
Delimiter |
String used to separate different parts of the logging record. The default value is a pipe surrounded by spaces ( | ).
(Inherited from TextLoggingBackendOptions.) | |
IncludeExceptionDetails |
Determines whether exception details (basically Exception.ToString) should be appended to the log.
The default value is false.
(Inherited from TextLoggingBackendOptions.) | |
IncludeLevel | ||
IncludeNamespace |
Determines whether the full namespace of types should be included in the log. The default value is false.
(Inherited from TextLoggingBackendOptions.) | |
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.
| |
IncludeType |
Determines whether the name of the type of the logged method should be included in the log. The default value is true.
(Inherited from TextLoggingBackendOptions.) | |
IndentSpaces |
Number of spaces for each indentation level. The default value is 2.
(Inherited from TextLoggingBackendOptions.) | |
LogLevelIgnoredForSystemRecords | (Inherited from LoggingBackendOptions.) | |
PreferSystemColors |
When true, the console logger will not attempt to use VT ANSI codes to format the output.
| |
RoleWidth |
Minimal width of the role column. The default value is 6.
| |
ShouldLogExceptionPredicate |
Gets or sets a predicate that determines whether an exception should be logged. This predicate is evaluated only
when the method entry is not logged. When the method entry is logged, exceptions are always logged.
(Inherited from TextLoggingBackendOptions.) | |
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.
| |
UseColors | Obsolete.
Determines whether messages of different level should be logged with different colors. The default value is true.
|
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |