Open sandboxFocus

Class DefaultLoggingExceptionHandler

An implementation of the ILoggingExceptionHandler that attempts to log exceptions to the Meta logging role, then disables the backlog in case of internal exception (but not in case of invalid user code). Not to be confused with ILoggerExceptionHandler.

Inheritance
DefaultLoggingExceptionHandler
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class DefaultLoggingExceptionHandler : ILoggingExceptionHandler

Constructors

Name Description
DefaultLoggingExceptionHandler()

Methods

Name Description
OnInternalException(LoggingExceptionInfo)

Method invoked when an exception is thrown in logging code.

OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, string, params object[])

Method invoked when a logging component detects a precondition violation that probably stem from user-written code.