PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods

LoggingBackend Methods

The LoggingBackend type exposes the following members.

Methods
  NameDescription
Protected methodCreateAsyncCustomActivityContext
Protected methodCreateAsyncMethodContext
Creates a new AsyncMethodLoggingContext for a given async method.
Protected methodCreateEphemeralContext
Creates a new EphemeralLoggingContext.
Protected methodCreateIteratorContext
Creates a new IteratorLoggingContext for a given iterator method.
Public methodCreateRecordBuilder
Creates a new LogRecordBuilder.
Protected methodCreateSyncCustomActivityContext
Protected methodCreateSyncMethodContext
Creates a new SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
Protected methodCreateThreadContext
Creates a new ThreadLoggingContext.
Protected methodCreateTypeSource
Creates LoggingTypeSource for the given role and type.
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Disposes the current object.
Public methodGetAsyncContextOfTask
Gets the AsyncMethodLoggingContext associated with a Task.
Protected methodGetBackendOptions
Gets the formatting and rendering options for the current LoggingBackend.
Public methodGetSource(String, String)
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
Public methodGetSource(String, Type)
Returns a LoggingTypeSource for the given role and type.
Public methodGetThreadContext
Returns the ThreadLoggingContext for the current Thread.
Public methodOpenAsyncContext
Gets an AsyncMethodLoggingContext for a given async method.
Public methodOpenCustomActivityContext
Gets a LoggingContext for a custom activity (opened using OpenActivity(String) or OpenAsyncActivity(String)).
Public methodOpenEphemeralContext
Gets an EphemeralLoggingContext for use in a given method. An EphemeralLoggingContext is a degenerated kind of context, used to emit a single record.
Public methodOpenIteratorContext
Gets an IteratorLoggingContext for a given iterator method.
Public methodOpenSyncContext
Gets a SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
See Also