ApplicationInsightsLoggingBackend Class |
Logging back-end for Microsoft Application Insights.

System.Object
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.ApplicationInsightsLoggingBackend
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.ApplicationInsightsLoggingBackend
Namespace: PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
Assembly: PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights (in PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.dll) Version: 6.5.15.0 (6.5.15.0)

C#
public class ApplicationInsightsLoggingBackend : TextLoggingBackend
The ApplicationInsightsLoggingBackend type exposes the following members.

Name | Description | |
---|---|---|
![]() | ApplicationInsightsLoggingBackend() |
Initializes a new ApplicationInsightsLoggingBackend.
|
![]() | ApplicationInsightsLoggingBackend(String) |
Creates ApplicationInsightsLoggingBackend that uses the given instrumentation key.
|

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.
|

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.) |
![]() | 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.) |
![]() | CreateTypeSource |
Creates a LoggingTypeSource for the given role and type.
(Overrides LoggingBackend.CreateTypeSource(LoggingNamespaceSource, Type).) |
![]() | 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.
(Overrides TextLoggingBackend.Dispose(Boolean).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides Object.Finalize().) |
![]() | Flush |
Flushes the in-memory buffer, to make sure buffered data reach the server immediately.
|
![]() | 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 back-end 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.) |
![]() | WithContextLocalConfiguration |
Changes the LoggingContextLocalConfiguration for the current execution context.
(Inherited from LoggingBackend.) |
