Logging backend that logs to Out.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class ConsoleLoggingBackend : TextLoggingBackend, IDisposableRemarks
To use this backend, assign a new instance to DefaultBackend when the application starts. Configure the output, including the color theme, through the Options property.
Constructors
| Name | Description |
|---|---|
| ConsoleLoggingBackend() | Initializes a new instance of the ConsoleLoggingBackend class. |
Properties
| Name | Description |
|---|---|
| Options | Gets the backend options. |
Methods
| Name | Description |
|---|---|
| CreateRecordBuilder() | Creates a new LogRecordBuilder. |
| CreateTypeSource(LoggingNamespaceSource, Type) | Creates a LoggingTypeSource for the given role and type. |
| CreateTypeSourceBySourceName(LoggingNamespaceSource, string) | Creates a LoggingTypeSource for the given role and logger name. |
| GetTextBackendOptions() | Gets the options. |