MetalamaAPI documentationFlashtrace APIFlashtraceFlashtrace­Level­SourceWrite
Open sandboxFocus

FlashtraceLevelSource.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, in CallerInfo)

Declaration
public void Write<T>(in T message, in WriteMessageOptions options, in 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 System.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.

System.Exception exception

An optional System.Exception.

WriteMessageOptions options

Options.

Type Parameters
Name Description
T

Type of the message.

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

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