PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLegacy­Source­Logger
Open sandboxFocus

LegacySourceLogger Class

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

Inheritance
System.Object
LegacySourceLogger
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class LegacySourceLogger : Object, 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.

Explicit Interface Implementations

Name Description
IContextLocalLogger.GetRecordBuilder(in CustomLogRecordOptions, ref CallerInfo, ILoggingContext)
IContextLocalLogger.OpenActivity(in OpenActivityOptions, ref CallerInfo)
IContextLocalLogger.ResumeActivity(ILoggingContext, ref CallerInfo)
IContextLocalLogger.SetWaitDependency(ILoggingContext, Object)
IContextLocalLogger.SuspendActivity(ILoggingContext, ref CallerInfo)
ILogActivityOptions.ActivityLevel
ILogActivityOptions.ExceptionLevel
ILogActivityOptions.FailureLevel
ILogger.ActivityOptions
ILogger.IsEnabled(LogLevel)
ILogger.OpenActivity(LogActivityOptions, ref CallerInfo)
ILogger.RequiresSuspendResume
ILogger.ResumeActivity(ILoggingContext, ref CallerInfo)
ILogger.Role
ILogger.SetWaitDependency(ILoggingContext, Object)
ILogger.SuspendActivity(ILoggingContext, ref CallerInfo)
ILogger.Type
ILogger.Write(ILoggingContext, LogLevel, LogRecordKind, String, Exception, ref CallerInfo)
ILogger.Write(ILoggingContext, LogLevel, LogRecordKind, String, Object[], Exception, ref CallerInfo)
ILogger.Write<T1>(ILoggingContext, LogLevel, LogRecordKind, String, T1, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Exception, ref CallerInfo)
ILogger.Write<T1, T2>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5, T6>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5, T6, T7>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5, T6, T7, T8>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, T8, Exception, ref CallerInfo)
ILogger.Write<T1, T2, T3, T4, T5, T6, T7, T8, T9>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, T8, T9, Exception, ref CallerInfo)
ILogger2.CurrentContext
ILogger2.GetContextLocalLogger()
ILogger3.Factory
ILogger3.GetContextLocalLogger(LogLevel)
ILoggerExceptionHandler.OnInternalException(Exception)
ILoggerExceptionHandler.OnInvalidUserCode(ref CallerInfo, String, Object[])