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 instance of the LegacySourceLogger class.

Properties

Name Description
Factory

Gets the ILoggerFactory, which creates new instances of the logger. This is used, for example, 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.