PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​MultiplexerMultiplexer­Backend
Open sandboxFocus

MultiplexerBackend Class

A multiplexer is a logging backend that sends logging events to other logging backends.

Inheritance
MultiplexerBackend
Implements
IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends.Multiplexer
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public sealed class MultiplexerBackend : LoggingBackend
Remarks

You want to use a multiplexer if you want all of your logging to go to two or more different backends.

Each backend, including the multiplexer itself, maintains its own stack of logging contexts.

Constructors

Name Description
MultiplexerBackend(LoggingBackend[])

Initializes a new multiplexer backend.

Properties

Name Description
Backends

Gets the child backends.

Methods

Name Description
CreateAsyncCustomActivityContext()

Creates a new AsyncCustomActivityLoggingContext.

CreateAsyncMethodContext()

Creates a new AsyncMethodLoggingContext for a given async method.

CreateEphemeralContext(ThreadLoggingContext)

Creates a new EphemeralLoggingContext.

CreateIteratorContext()

Creates a new IteratorLoggingContext for a given iterator method.

CreateRecordBuilder()

Creates a new LogRecordBuilder.

CreateSyncCustomActivityContext(ThreadLoggingContext)

Creates a new SyncCustomActivityLoggingContext.

CreateSyncMethodContext(ThreadLoggingContext)

Creates a new SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.

CreateThreadContext()

Creates a new ThreadLoggingContext.

CreateTransaction(LoggingTypeSource, in TransactionProperties, ITransactionPolicy)

Creates a LoggingTransaction instance.

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.

CreateVerbosityConfiguration()

Creates a new LoggingVerbosityConfiguration for the current LoggingBackend.

Dispose(Boolean)

Disposes the current object.

GetBackendOptions()

Gets the formatting and rendering options for the current LoggingBackend.

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)