PostSharp5.0/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
System.Object
  PostSharp.Patterns.Diagnostics.LoggingServices

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class LoggingServices

The LoggingServices type exposes the following members.

Constructors
  NameDescription
Public methodLoggingServices
Initializes a new instance of the LoggingServices class
Properties
  NameDescription
Public propertyStatic memberCurrentTimestamp
Gets a timestamp, in milliseconds.
Public propertyStatic memberDefaultBackend
Gets or sets the LoggingBackend used for logging in the current application.
Public propertyStatic memberProfiles
Gets the repository of build-time logging profiles.
Public propertyStatic memberRoles
Gets the repository of role-specific run-time logging options.
Methods
  NameDescription
Public methodStatic memberGetSource(String, String)
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
Public methodStatic memberGetSource(String, Type)
Returns a LoggingTypeSource for the given role and type.
Events
  NameDescription
Public eventStatic memberDefaultBackendChanged
Event raised when the DefaultBackend property has changed.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also