PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​DiagnosticsDefault­Logging­Exception­Handler
Open sandboxFocus

DefaultLoggingExceptionHandler Class

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 : Object, ILoggingExceptionHandler

Constructors

Name Description
DefaultLoggingExceptionHandler() PostSharp.Patterns.Diagnostics.DefaultLoggingExceptionHandler

Methods

Name Description
OnInternalException(LoggingExceptionInfo)

Method invoked when an exception is thrown in logging code.

OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, String, Object[])

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