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.10.14.0 (6.10.14.0)
C#
public interface ILoggerExceptionHandler
The ILoggerExceptionHandler type exposes the following members.
Name | Description | |
---|---|---|
OnInternalException |
Method invoked when an exception is thrown in logging code.
| |
OnInvalidUserCode |
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.
|