PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger3 Interface

ILogger3 Interface

Extends ILogger2.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.10.0 (6.10.10.0)
Syntax
C#
public interface ILogger3 : ILogger2, 
	ILogger, ILoggerExceptionHandler

The ILogger3 type exposes the following members.

Properties
  NameDescription
Public propertyActivityOptions
Gets the default verbosity when opening and closing activities.
(Inherited from ILogger.)
Public propertyCurrentContext
Gets the current ILoggingContext.
(Inherited from ILogger2.)
Public propertyFactory
Gets the logger for the current context and returns a flag determining if the logger is enabled for a given level.
Public propertyRequiresSuspendResume
Determines whether calls of SuspendActivity(ILoggingContext, CallerInfo) and ResumeActivity(ILoggingContext, CallerInfo) is required for asynchronous custom activities in the current context.
(Inherited from ILogger.)
Public propertyRole
Gets the role of records created by this ILogger. A list of standard roles is available in the LoggingRoles class.
(Inherited from ILogger.)
Public propertyType Obsolete.
Gets the source Type for which this ILogger was created.
(Inherited from ILogger.)
Methods
  NameDescription
Public methodGetContextLocalLogger()
Gets the logger for the current context.
(Inherited from ILogger2.)
Public methodGetContextLocalLogger(LogLevel)
Gets the IContextLocalLogger plus a flag indicating whether the source is enabled for a given LogLevel.
Public methodIsEnabled
Determines whether logging is enabled for a given LogLevel.
(Inherited from ILogger.)
Public methodOnInternalException
Method invoked when an exception is thrown in logging code.
(Inherited from ILoggerExceptionHandler.)
Public methodOnInvalidUserCode
Method invoked when the user code calling Logger or LogActivity is invalid, e.g. when the formatting string is incorrect or does not match the arguments.
(Inherited from ILoggerExceptionHandler.)
Public methodOpenActivity
Opens an activity.
(Inherited from ILogger.)
Public methodResumeActivity
Resumes an asynchronous activity suspended by the SuspendActivity(ILoggingContext, CallerInfo) method.
(Inherited from ILogger.)
Public methodSetWaitDependency
Sets the wait dependency for a given context, i.e. give information about what the given context is waiting (or awaiting) for.
(Inherited from ILogger.)
Public methodSuspendActivity
Suspends an asynchronous activity, which can then be resumed by the ResumeActivity(ILoggingContext, CallerInfo) method.
(Inherited from ILogger.)
Public methodWrite(ILoggingContext, LogLevel, LogRecordKind, String, Exception, CallerInfo)
Writes a custom log record with a description without parameters.
(Inherited from ILogger.)
Public methodWrite(ILoggingContext, LogLevel, LogRecordKind, String, Object[], Exception, CallerInfo)
Writes a custom log record with a description with an array of parameters.
(Inherited from ILogger.)
Public methodWrite<T1>(ILoggingContext, LogLevel, LogRecordKind, String, T1, Exception, CallerInfo)
Writes a custom log record with 1 parameter.
(Inherited from ILogger.)
Public methodWrite<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, CallerInfo)
Writes a custom log record with 10 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, Exception, CallerInfo)
Writes a custom log record with 2 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, Exception, CallerInfo)
Writes a custom log record with 3 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, Exception, CallerInfo)
Writes a custom log record with 4 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4, T5>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, Exception, CallerInfo)
Writes a custom log record with 5 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4, T5, T6>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, Exception, CallerInfo)
Writes a custom log record with 6 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4, T5, T6, T7>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, Exception, CallerInfo)
Writes a custom log record with 7 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4, T5, T6, T7, T8>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, T8, Exception, CallerInfo)
Writes a custom log record with 8 parameters.
(Inherited from ILogger.)
Public methodWrite<T1, T2, T3, T4, T5, T6, T7, T8, T9>(ILoggingContext, LogLevel, LogRecordKind, String, T1, T2, T3, T4, T5, T6, T7, T8, T9, Exception, CallerInfo)
Writes a custom log record with 9 parameters.
(Inherited from ILogger.)
See Also