PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger Interface / ILogger Methods / ILogger.​Write Method / ILogger.​Write Method (ILogging­Context, Log­Level, Log­Record­Kind, String, Exception, Caller­Info)

ILogger.Write Method (ILoggingContext, LogLevel, LogRecordKind, String, Exception, CallerInfo)

Writes a custom log record with a description without parameters.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
void Write(
	ILoggingContext context,
	LogLevel level,
	LogRecordKind recordKind,
	string text,
	Exception exception,
	ref CallerInfo callerInfo
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.ILoggingContext
level
Type: PostSharp.Patterns.Diagnostics.LogLevel
LogLevel of the record.
recordKind
Type: PostSharp.Patterns.Diagnostics.LogRecordKind
Kind of record.
text
Type: System.String
Text of the record.
exception
Type: System.Exception
The Exception associated with the record, or null.
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the caller source code.
See Also