Defines methods that are called when an exception occurs in the Logger class. This interface can be implemented by any class that implements the ILogger interface. When an ILogger does not implement this interface, logging exceptions are silently ignored.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public interface ILoggerExceptionHandlerMethods
| Name | Description |
|---|---|
| OnInternalException(Exception) | Called when an exception is thrown in the logging code. |
| OnInvalidUserCode(ref CallerInfo, string, params object[]) | Called when the user code calling Logger or LogActivity is invalid, for example when the formatting string is incorrect or does not match the arguments. |