PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsFormatted­Message­Builder
Open sandboxFocus

FormattedMessageBuilder Class

Creates messages based on a human-readable formatted string. These messages are suitable for structured logging are not optimal for machine analysis. For more succinct code, consider including the using static PostSharp.Patterns.Diagnostics.FormattedMessageBuilder statement.

Inheritance
FormattedMessageBuilder
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
public static class FormattedMessageBuilder : Object

Methods

Name Description
Formatted(String)

Creates a text message with no formatting string parameter.

Formatted(String, Object[])

Creates a formatted string with an arbitrary number of parameters.

Formatted<T1>(String, T1)

Creates a formatted string with 1 parameter.

Formatted<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(String, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Creates a formatted string with 10 parameters.

Formatted<T1, T2>(String, T1, T2)

Creates a formatted string with 2 parameters.

Formatted<T1, T2, T3>(String, T1, T2, T3)

Creates a formatted string with 3 parameters.

Formatted<T1, T2, T3, T4>(String, T1, T2, T3, T4)

Creates a formatted string with 4 parameters.

Formatted<T1, T2, T3, T4, T5>(String, T1, T2, T3, T4, T5)

Creates a formatted string with 5 parameters.

Formatted<T1, T2, T3, T4, T5, T6>(String, T1, T2, T3, T4, T5, T6)

Creates a formatted string with 6 parameters.

Formatted<T1, T2, T3, T4, T5, T6, T7>(String, T1, T2, T3, T4, T5, T6, T7)

Creates a formatted string with 7 parameters.

Formatted<T1, T2, T3, T4, T5, T6, T7, T8>(String, T1, T2, T3, T4, T5, T6, T7, T8)

Creates a formatted string with 8 parameters.

Formatted<T1, T2, T3, T4, T5, T6, T7, T8, T9>(String, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Creates a formatted string with 9 parameters.