The LoggingBackend used by default to write error messages of the Meta role. The default way to create a MetaLoggingBackend is with the CreateFromDefaultBackend(bool, bool) method.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class MetaLoggingBackend : TextLoggingBackend, IDisposable
Constructors
Name | Description |
---|---|
MetaLoggingBackend() | Initializes a new MetaLoggingBackend that will try to write both to the console and to the debugger. |
MetaLoggingBackend(bool, bool) | Initializes a new MetaLoggingBackend and specifies whether it must write to the console and to the debugger. |
Methods
Name | Description |
---|---|
CreateFromDefaultBackend(bool, bool) | Returns a LoggingBackend, for use with the Meta role, that will try to write to DefaultBackend if it is enabled, and will optionally write warnings and errors to the console and the debugger. |
CreateRecordBuilder() | Creates a new LogRecordBuilder. |
CreateTypeSource(LoggingNamespaceSource, Type) | Creates a LoggingTypeSource for the given role and type. |
GetTextBackendOptions() | Gets the options. |
Write(LogLevel, UnsafeString, Exception) | Writes a message. |