Open sandboxFocus

Class LegacySourceLogger

A base class for implementations of ILogger that cannot depend on the PostSharp.Patterns.Diagnostics package.

Inheritance
LegacySourceLogger
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class LegacySourceLogger : ILogger3, ILogger2, ILogger, IContextLocalLogger, ILoggerExceptionHandler, ILogActivityOptions

Constructors

Name Description
LegacySourceLogger(string, Type)

Initializes a new LegacySourceLogger.

Properties

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

Methods

Name Description
IsEnabled(LogLevel)

Determines whether logging is enabled for a given LogLevel.

Write(LogLevel, LogRecordKind, string, Exception)

Writes a text message.