PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Services Class

LoggingServices Class

The entry point to configure PostSharp.Patterns.Diagnostics logging at run-time.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
public class LoggingServices

The LoggingServices type exposes the following members.

Public methodLoggingServices
Initializes a new instance of the LoggingServices class
Public propertyStatic memberCurrentTimestamp
Gets a timestamp, in milliseconds.
Public propertyStatic memberDefaultBackend
Gets or sets the default LoggingBackend used for logging in the current application.
Public propertyStatic memberExceptionHandler
Gets or sets the object that handles exceptions thrown by the logging logic. This property is set by default to an instance of the DefaultLoggingExceptionHandler class.
Public propertyStatic memberProfiles
Gets the repository of build-time logging profiles.
Public propertyStatic memberRoles
Gets the repository of role-specific run-time logging options.
Public methodStatic memberGetSource(String, String) Obsolete.
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
Public methodStatic memberGetSource(String, Type) Obsolete.
Returns a LoggingTypeSource for the given role and type.
Public methodStatic memberInitialize
Forces initialization of the PostSharp.Patterns.Diagnostics package, i.e. binds the Logger facade API (which is defined in the PostSharp.Patterns.Common package) to the implementation by the PostSharp.Patterns.Diagnostics package.
Public methodStatic memberOnInternalException(Exception, LoggingTypeSource)
Method invoked when an exception is caught in logging code.
Public methodStatic memberOnInternalException(Exception, LoggingTypeSource, LogRecordBuilder)
Method invoked when an exception is caught in logging code. This overload disposed the LogRecordBuilder.
Public eventStatic memberDefaultBackendChanged
Event raised when the DefaultBackend property has changed.
See Also