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.dll
Syntax
public interface ILoggerExceptionHandler
Methods
Name | Description |
---|---|
OnInternalException(Exception) | Method invoked when an exception is thrown in logging code. |
OnInvalidUserCode(ref CallerInfo, string, params object[]) | 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. |