AuditBackend Class |
Note: This API is now obsolete.
A specialized back-end that publishes audit records to the RecordPublished event.
System.Object
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.Audit.AuditBackend
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.Audit.AuditBackend
Namespace: PostSharp.Patterns.Diagnostics.Backends.Audit
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[ObsoleteAttribute("This feature has been moved to the sample PostSharp.Samples.Logging.Audit.")] public class AuditBackend : TextLoggingBackend
The AuditBackend type exposes the following members.
Name | Description | |
---|---|---|
AuditBackend |
Initializes a new AuditBackend.
|
Name | Description | |
---|---|---|
CurrentContext |
Gets the current LoggingContext.
(Inherited from LoggingBackend.) | |
CurrentContextLocalConfiguration |
Gets the LoggingContextLocalConfiguration for the current execution. Returns DefaultContextLocalConfiguration
unless the context has been overwritten by WithContextLocalConfiguration(LoggingContextLocalConfiguration).
(Inherited from LoggingBackend.) | |
DefaultContextLocalConfiguration |
Gets the default LoggingContextLocalConfiguration, used unless it has been overwritten by the WithContextLocalConfiguration(LoggingContextLocalConfiguration)
for the current execution context.
(Inherited from LoggingBackend.) | |
DefaultVerbosity |
Gets the LoggingVerbosityConfiguration of the DefaultContextLocalConfiguration.
(Inherited from LoggingBackend.) | |
IsCorrupted |
Determines whether the current LoggingBackend is in a state where it can no longer be recovered. This typically happens when
an exception occurs while disabling or enabling.
(Inherited from LoggingBackend.) | |
IsDisposed |
Determines whether the current LoggingBackend has been disposed.
(Inherited from LoggingBackend.) | |
IsEnabled |
Determines whether the current LoggingBackend is currently enabled. This property has precedence
over, and does not affect, the minimal log levels set through the SetLevel(LogLevel) method.
(Inherited from LoggingBackend.) | |
Options |
Gets the back-end options.
| |
TransactionPolicySelector |
Gets or sets the selector that determines what policy to apply for each transaction or whether the transaction should be logged as a transaction
at all.
(Inherited from LoggingBackend.) |
Name | Description | |
---|---|---|
CreateAsyncCustomActivityContext |
Creates a new AsyncCustomActivityLoggingContext.
(Inherited from LoggingBackend.) | |
CreateAsyncMethodContext |
Creates a new AsyncMethodLoggingContext for a given async method.
(Inherited from LoggingBackend.) | |
CreateContextLocalConfiguration |
Creates a new LoggingContextLocalConfiguration.
(Inherited from LoggingBackend.) | |
CreateEphemeralContext |
Creates a new EphemeralLoggingContext.
(Inherited from LoggingBackend.) | |
CreateExecutionContextData |
Creates a new empty instance of ExecutionContextData possibly of a subclass which can hold backend-specific data.
(Inherited from LoggingBackend.) | |
CreateIteratorContext |
Creates a new IteratorLoggingContext for a given iterator method.
(Inherited from LoggingBackend.) | |
CreateRecordBuilder |
Creates a new LogRecordBuilder.
(Overrides LoggingBackend.CreateRecordBuilder().) | |
CreateSyncCustomActivityContext |
Creates a new SyncCustomActivityLoggingContext.
(Inherited from LoggingBackend.) | |
CreateSyncMethodContext |
Creates a new SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
(Inherited from LoggingBackend.) | |
CreateThreadContext |
Creates a new ThreadLoggingContext.
(Inherited from LoggingBackend.) | |
CreateTransaction |
Creates a LoggingTransaction instance.
(Inherited from LoggingBackend.) | |
CreateTypeSource |
Creates a LoggingTypeSource for the given role and type.
(Overrides LoggingBackend.CreateTypeSource(LoggingNamespaceSource, Type).) | |
CreateTypeSourceBySourceName |
Creates a LoggingTypeSource for the given role and logger name.
(Inherited from LoggingBackend.) | |
CreateVerbosityConfiguration |
Creates a new LoggingVerbosityConfiguration for the current LoggingBackend.
(Inherited from LoggingBackend.) | |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from LoggingBackend.) | |
Dispose(Boolean) |
Disposes the current object.
(Inherited from TextLoggingBackend.) | |
GetAsyncContextOfTask |
Gets the AsyncMethodLoggingContext associated with a Task.
(Inherited from LoggingBackend.) | |
GetBackendOptions |
Gets the formatting and rendering options for the current LoggingBackend.
(Inherited from TextLoggingBackend.) | |
GetSource(String, String) | Obsolete.
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
(Inherited from LoggingBackend.) | |
GetSource(String, Type) | Obsolete.
Returns a LoggingTypeSource for the given role and type.
(Inherited from LoggingBackend.) | |
GetTextBackendOptions |
Gets the options.
(Overrides TextLoggingBackend.GetTextBackendOptions().) | |
GetThreadContext |
Returns the ThreadLoggingContext for the current Thread.
(Inherited from LoggingBackend.) | |
OpenAsyncContext |
Gets an AsyncMethodLoggingContext for a given async method.
(Inherited from LoggingBackend.) | |
OpenEphemeralContext(LogMemberInfo) |
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.) | |
OpenEphemeralContext(LoggingTypeSource, ThreadLoggingContext) |
Gets an EphemeralLoggingContext for use in a given LoggingTypeSource. An EphemeralLoggingContext is a degenerated
kind of context, used to emit a single record.
(Inherited from LoggingBackend.) | |
OpenIteratorContext |
Gets an IteratorLoggingContext for a given iterator method.
(Inherited from LoggingBackend.) | |
OpenSyncContext |
Gets a SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
(Inherited from LoggingBackend.) | |
PublishRecord |
Publishes an AuditRecord to the RecordPublished event.
| |
ToString | Returns a string that represents the current object. (Inherited from LoggingBackend.) | |
WithContextLocalConfiguration |
Changes the LoggingContextLocalConfiguration for the current execution context.
(Inherited from LoggingBackend.) | |
WithVerbosityConfiguration |
Changes the verbosity for the current execution context.
(Inherited from LoggingBackend.) |