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

ApplicationInsightsLoggingBackend Class

Logging back-end for Microsoft Application Insights.
Inheritance Hierarchy
System.Object
  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.0.35.0 (6.0.35.0)
Syntax
C#
public class ApplicationInsightsLoggingBackend : TextLoggingBackend

The ApplicationInsightsLoggingBackend type exposes the following members.

Constructors
  NameDescription
Public methodApplicationInsightsLoggingBackend()
Initializes a new ApplicationInsightsLoggingBackend.
Public methodApplicationInsightsLoggingBackend(String)
Creates ApplicationInsightsLoggingBackend that uses the given instrumentation key.
Properties
  NameDescription
Public propertyCurrentContext
Gets the current LoggingContext.
(Inherited from LoggingBackend.)
Public propertyIsCorrupted (Inherited from LoggingBackend.)
Public propertyIsDisposed
Determines whether the current LoggingBackend has been disposed.
(Inherited from LoggingBackend.)
Public propertyIsEnabled
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.)
Public propertyOptions
Gets the back-end options.
Methods
  NameDescription
Protected methodCreateAsyncCustomActivityContext (Inherited from LoggingBackend.)
Protected methodCreateAsyncMethodContext
Creates a new AsyncMethodLoggingContext for a given async method.
(Inherited from LoggingBackend.)
Protected methodCreateEphemeralContext
Creates a new EphemeralLoggingContext.
(Inherited from LoggingBackend.)
Protected methodCreateIteratorContext
Creates a new IteratorLoggingContext for a given iterator method.
(Inherited from LoggingBackend.)
Public methodCreateRecordBuilder
Creates a new LogRecordBuilder.
(Overrides LoggingBackend.CreateRecordBuilder().)
Protected methodCreateSyncCustomActivityContext (Inherited from LoggingBackend.)
Protected methodCreateSyncMethodContext
Creates a new SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
(Inherited from LoggingBackend.)
Protected methodCreateThreadContext
Creates a new ThreadLoggingContext.
(Inherited from LoggingBackend.)
Protected methodCreateTypeSource
Creates LoggingTypeSource for the given role and type.
(Overrides LoggingBackend.CreateTypeSource(LoggingNamespaceSource, Type).)
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from LoggingBackend.)
Protected methodDispose(Boolean)
Disposes the current object.
(Inherited from TextLoggingBackend.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Overrides Object.Finalize().)
Public methodFlush
Flushes the in-memory buffer, to make sure buffered data reach the server immediately.
Public methodGetAsyncContextOfTask
Gets the AsyncMethodLoggingContext associated with a Task.
(Inherited from LoggingBackend.)
Protected methodGetBackendOptions
Gets the formatting and rendering options for the current LoggingBackend.
(Inherited from TextLoggingBackend.)
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.)
Protected methodGetTextBackendOptions
Gets the back-end options.
(Overrides TextLoggingBackend.GetTextBackendOptions().)
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.)
See Also