PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Formatted­Message­Builder Class

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 Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.FormattedMessageBuilder

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public static class FormattedMessageBuilder
Methods
  NameDescription
Public methodStatic memberFormatted(String)
Creates a text message with no formatting string parameter.
Public methodStatic memberFormatted(String, Object[])
Creates a formatted string with an arbitrary number of parameters.
Public methodStatic memberFormatted<T1>(String, T1)
Creates a formatted string with 1 parameter.
Public methodStatic memberFormatted<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.
Public methodStatic memberFormatted<T1, T2>(String, T1, T2)
Creates a formatted string with 2 parameters.
Public methodStatic memberFormatted<T1, T2, T3>(String, T1, T2, T3)
Creates a formatted string with 3 parameters.
Public methodStatic memberFormatted<T1, T2, T3, T4>(String, T1, T2, T3, T4)
Creates a formatted string with 4 parameters.
Public methodStatic memberFormatted<T1, T2, T3, T4, T5>(String, T1, T2, T3, T4, T5)
Creates a formatted string with 5 parameters.
Public methodStatic memberFormatted<T1, T2, T3, T4, T5, T6>(String, T1, T2, T3, T4, T5, T6)
Creates a formatted string with 6 parameters.
Public methodStatic memberFormatted<T1, T2, T3, T4, T5, T6, T7>(String, T1, T2, T3, T4, T5, T6, T7)
Creates a formatted string with 7 parameters.
Public methodStatic memberFormatted<T1, T2, T3, T4, T5, T6, T7, T8>(String, T1, T2, T3, T4, T5, T6, T7, T8)
Creates a formatted string with 8 parameters.
Public methodStatic memberFormatted<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.
See Also