PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Level­Source Class / Log­Level­Source Methods / Log­Level­Source.​Write Method / Log­Level­Source.​Write(T) Method (T, Exception, Write­Message­Options)

LogLevelSource.Write<T> Method (T, Exception, WriteMessageOptions)

Writes a message and specifies an Exception.

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#
public void Write<T>(
	 in T message,
	Exception exception,
	 in WriteMessageOptions options = null
)
where T : IMessage

Parameters

message
Type: T
The message, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class.
exception
Type: System.Exception
An optional Exception.
options (Optional)
Type: PostSharp.Patterns.Diagnostics.WriteMessageOptions
Options.

Type Parameters

T
Type of the message.
See Also