PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/ILogger­Exception­Handler Interface

ILoggerExceptionHandler Interface

Defines methods called in case of exception in the Logger class. This interface can be implemented by any class implementing the ILogger interface. When an ILogger does not implement this interface, logging exceptions are simply silently ignored.

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

The ILoggerExceptionHandler type exposes the following members.

Methods
  NameDescription
Public methodOnInternalException
Method invoked when an exception is thrown in logging code.
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.
See Also