Open sandboxFocus

Class TextLoggingBackend

A base class for all text-based logging backends.

Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public abstract class TextLoggingBackend : LoggingBackend, IDisposable
Remarks

To integrate PostSharp Logging with a logging framework that has no ready-made backend, derive a class from TextLoggingBackend. Implement GetTextBackendOptions() so that it returns an instance of a class derived from TextLoggingBackendOptions, CreateTypeSource(LoggingNamespaceSource, Type) so that it returns your LoggingTypeSource, and CreateRecordBuilder() so that it returns your TextLogRecordBuilder.

Constructors

Name Description
TextLoggingBackend()

Properties

Name Description
Options

Gets the backend options.

Methods

Name Description
Dispose(bool)

Disposes the current object.

GetBackendOptions()

Gets the formatting and rendering options for the current LoggingBackend.

GetTextBackendOptions()

Gets the options.

See Also