PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLog­Level­SourceWrite
Open sandboxFocus

LogLevelSource.Write Method

Write<T>(in T, in WriteMessageOptions)

Writes a message.

Declaration
public void Write<T>(in T message, in WriteMessageOptions options = null)
where T : IMessage
Parameters
Type Name Description
T message

The message, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class.

WriteMessageOptions options

Options.

Type Parameters
Name Description
T

Type of the message.

Write<T>(in T, in WriteMessageOptions, ref CallerInfo)

Declaration
public void Write<T>(in T message, in WriteMessageOptions options, ref CallerInfo callerInfo)
where T : IMessage
Parameters
Type Name Description
T message
WriteMessageOptions options
CallerInfo callerInfo
Type Parameters
Name Description
T

Write<T>(in T, Exception, in WriteMessageOptions)

Writes a message and specifies an Exception.

Declaration
public void Write<T>(in T message, Exception exception, in WriteMessageOptions options = null)
where T : IMessage
Parameters
Type Name Description
T message

The message, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class.

Exception exception

An optional Exception.

WriteMessageOptions options

Options.

Type Parameters
Name Description
T

Type of the message.

Write<T>(in T, Exception, in WriteMessageOptions, ref CallerInfo)

Declaration
public void Write<T>(in T message, Exception exception, in WriteMessageOptions options, ref CallerInfo callerInfo)
where T : IMessage
Parameters
Type Name Description
T message
Exception exception
WriteMessageOptions options
CallerInfo callerInfo
Type Parameters
Name Description
T