PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Null Namespace / Null­Logging­Backend Class

NullLoggingBackend Class

Logging back-end that does not do anything.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Null
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
public sealed class NullLoggingBackend : LoggingBackend

The NullLoggingBackend type exposes the following members.

Public propertyCurrentContext
Gets the current LoggingContext.
(Inherited from LoggingBackend.)
Public propertyStatic memberInstance
Gets the singleton instance of NullLoggingBackend.
Public propertyIsDisposed
Determines whether the current LoggingBackend has been disposed.
(Inherited from LoggingBackend.)
Public propertyOptions
Gets the formatting and rendering options for the current LoggingBackend.
(Inherited from LoggingBackend.)
Public methodCreateRecordBuilder
Creates a new LogRecordBuilder.
(Overrides LoggingBackend.CreateRecordBuilder().)
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from LoggingBackend.)
Public methodGetAsyncContextOfTask
Gets the AsyncMethodLoggingContext associated with a Task.
(Inherited from LoggingBackend.)
Public methodGetSource(String, String)
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
(Inherited from LoggingBackend.)
Public methodGetSource(String, Type)
Returns a LoggingTypeSource for the given role and type.
(Inherited from LoggingBackend.)
Public methodGetThreadContext
Returns the ThreadLoggingContext for the current Thread.
(Inherited from LoggingBackend.)
Public methodOpenAsyncContext
Gets an AsyncMethodLoggingContext for a given async method.
(Inherited from LoggingBackend.)
Public methodOpenCustomActivityContext
Gets a LoggingContext for a custom activity (opened using OpenActivity(String) or OpenAsyncActivity(String)).
(Inherited from LoggingBackend.)
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.
(Inherited from LoggingBackend.)
Public methodOpenIteratorContext
Gets an IteratorLoggingContext for a given iterator method.
(Inherited from LoggingBackend.)
Public methodOpenSyncContext
Gets a SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
(Inherited from LoggingBackend.)
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also