Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Default­Logging­Exception­Handler Class

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 Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.DefaultLoggingExceptionHandler

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.5.0 (6.1.5.0)
Syntax
C#
public class DefaultLoggingExceptionHandler : ILoggingExceptionHandler

The DefaultLoggingExceptionHandler type exposes the following members.

Constructors
  NameDescription
Public methodDefaultLoggingExceptionHandler
Initializes a new instance of the DefaultLoggingExceptionHandler class
Methods
  NameDescription
Public methodOnInternalException
Method invoked when an exception is thrown in logging code.
Public methodOnInvalidUserCode
Method invoked when a logging component detects a precondition violation that probably stem from user-written code.
See Also