Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace

PostSharp.Patterns.Diagnostics.Custom Namespace

 
Classes
  ClassDescription
Public classInvalidFormattingStringException
Exception thrown by the FormattingStringParser and by the Logger class when user code provides an invalid formatting string.
Structures
  StructureDescription
Public structureFormattingStringParser
Parses the formatting string for custom messages of the Logger and LogActivity classes.
Interfaces
  InterfaceDescription
Public interfaceILogActivityOptions
Public interfaceILogger
Abstraction of the Logging facility, through which other components emit their log records. This interfaces abstracts other PostSharp components from the PostSharp.Patterns.Diagnostics component.
Public interfaceILoggerExceptionHandler
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.
Public interfaceILoggerFactory
Creates instances of the ILogger interface. An instance of this interface must be registered into the ServiceLocator.