PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​BackendsMeta­Logging­Backend
Open sandboxFocus

MetaLoggingBackend Class

The LoggingBackend used by default to write error messages of the Meta role. The default way to create a MetaLoggingBackend is with the CreateFromDefaultBackend(Boolean, Boolean) method.

Inheritance
MetaLoggingBackend
Implements
IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class MetaLoggingBackend : TextLoggingBackend

Constructors

Name Description
MetaLoggingBackend()

Initializes a new MetaLoggingBackend that will try to write both to the console and to the debugger.

MetaLoggingBackend(Boolean, Boolean)

Initializes a new MetaLoggingBackend and specifies whether it must write to the console and to the debugger.

Methods

Name Description
CreateFromDefaultBackend(Boolean, Boolean)

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.

Extension Methods

LoggingConfigurationManager.ConfigureFromXmlWithAutoReloadAsync(LoggingBackend, Uri, TimeSpan, CancellationToken)
LoggingConfigurationManager.StopAutoReloadConfigurationAsync(LoggingBackend)
LoggingConfigurationManager.ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XDocument, Boolean)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XElement, Boolean)
LoggingConfigurationManager.ResetConfiguration(LoggingBackend)