Implementation of ILoggingExceptionHandler that attempts to log exceptions to the Meta logging role, then disables the backlog in case of an internal exception, but not in case of invalid user code. Not to be confused with ILoggerExceptionHandler.
Implements
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class DefaultLoggingExceptionHandler : ILoggingExceptionHandlerConstructors
| Name | Description |
|---|---|
| DefaultLoggingExceptionHandler() |
Methods
| Name | Description |
|---|---|
| OnInternalException(LoggingExceptionInfo) | Called when an exception is thrown in logging code. |
| OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, string, params object[]) | Called when a logging component detects a precondition violation that probably stems from user-written code. |