The entry point to configure PostSharp.Patterns.Diagnostics logging at run time.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LoggingServicesConstructors
| Name | Description |
|---|---|
| LoggingServices() |
Properties
| Name | Description |
|---|---|
| CurrentTimestamp | Gets a timestamp, in milliseconds. |
| DefaultBackend | Gets or sets the default LoggingBackend used for logging in the current application. |
| ExceptionHandler | 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, or to an instance of the ThrowingLoggingExceptionHandler class when a debugger is attached at the time the LoggingServices class is initialized. |
| Profiles | Gets the repository of build-time logging profiles. |
| Roles | Gets the repository of role-specific run-time logging options. |
Methods
| Name | Description |
|---|---|
| GetSource(string, string) | Returns a LoggingNamespaceSource for the given role and, optionally, namespace. |
| GetSource(string, Type) | Returns a LoggingTypeSource for the given role and type. |
| Initialize() | Forces initialization of the |
| OnInternalException(Exception, LoggingTypeSource) | Called when an exception is caught in logging code. |
| OnInternalException(Exception, LoggingTypeSource, LogRecordBuilder) | Called when an exception is caught in logging code. This overload disposes the LogRecordBuilder. |
Events
| Name | Description |
|---|---|
| DefaultBackendChanged | Occurs when the DefaultBackend property changes. |