PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger2 Interface / ILogger2 Methods

ILogger2 Methods

The ILogger2 type exposes the following members.

Methods
  NameDescription
Public methodGetContextLocalLogger
Gets the logger for the current context.
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