LegacySourceLogger Class |
A base class for implementations of ILogger that cannot depend on the PostSharp.Patterns.Diagnostics package.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public abstract class LegacySourceLogger : ILogger2, ILogger, ILoggerExceptionHandler, IContextLocalLogger, ILogActivityOptions
The LegacySourceLogger type exposes the following members.
Name | Description | |
---|---|---|
LegacySourceLogger |
Initializes a new LegacySourceLogger.
|
Name | Description | |
---|---|---|
Factory |
Gets the ILoggerFactory, which allows to create new instances of the logger. This is used for instance by ForType(Type).
| |
RequiresSuspendResume | ||
Role | ||
Type |
Name | Description | |
---|---|---|
IsEnabled |
Determines whether logging is enabled for a given LogLevel.
| |
Write |
Writes a text message.
|