PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/ILogger2 Interface

ILogger2 Interface

Extends ILogger.

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

The ILogger2 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.
Public propertyFactory
Gets the ILoggerFactory, which allows to create new instances of the logger. This is used for instance by ForType(Type).
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
Gets the source Type for which this ILogger was created.
(Inherited from ILogger.)
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