ILogger Interface |
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.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public interface ILogger
The ILogger type exposes the following members.
Name | Description | |
---|---|---|
ActivityOptions |
Gets the default verbosity when opening and closing activities.
| |
RequiresSuspendResume |
Determines whether calls of SuspendActivity(ILoggingContext, CallerInfo) and ResumeActivity(ILoggingContext, CallerInfo)
is required for asynchronous custom activities in the current context.
| |
Role |
Gets the role of records created by this ILogger. A list of standard roles is available in the LoggingRoles class.
| |
Type | Obsolete.
Gets the source Type for which this ILogger was created.
|
If you want to implement this interface, you should also implement the ILoggerFactory interface and register it to the ServiceLocator.