PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/IContext­Local­Logger Interface

IContextLocalLogger Interface

Abstraction of custom logging methods where the contact has already been resolved.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.8.0 (6.5.8.0)
Syntax
C#
public interface IContextLocalLogger : ILoggerExceptionHandler

The IContextLocalLogger type exposes the following members.

Methods
  NameDescription
Public methodGetRecordBuilder
Public methodIsEnabled
Determines whether logging is enabled for a given LogLevel.
Public methodOnInternalException
Method invoked when an exception is thrown in logging code.
(Inherited from ILoggerExceptionHandler.)
Public methodOnInvalidUserCode
Method invoked when the user code calling Logger or LogActivity is invalid, e.g. when the formatting string is incorrect or does not match the arguments.
(Inherited from ILoggerExceptionHandler.)
Public methodOpenActivity
Public methodResumeActivity
Resumes an asynchronous activity suspended by the SuspendActivity(ILoggingContext, CallerInfo) method.
Public methodSetWaitDependency
Sets the wait dependency for a given context, i.e. give information about what the given context is waiting (or awaiting) for.
Public methodSuspendActivity
Suspends an asynchronous activity, which can then be resumed by the ResumeActivity(ILoggingContext, CallerInfo) method.
See Also