Represents a message that can be used with the LogSource class. To create a message instance, you would typically use the SemanticMessageBuilder or FormattedMessageBuilder class.
Namespace: PostSharp.Patterns.Diagnostics.Custom.Messages
Assembly: PostSharp.Patterns.Common.dll
Syntax
public interface IMessageRemarks
Implement this interface to define your own type of message when neither builder fits your needs. Prefer a value type: methods such as Write<T>(in T, in WriteMessageOptions) and OpenActivity<T>(in T, in OpenActivityOptions) are generic on the message type, so a message that is a value type is not boxed.
To reuse the formatting string syntax of FormattedMessageBuilder, use the FormattingStringParser type.
Methods
| Name | Description |
|---|---|
| Write(ICustomLogRecordBuilder, CustomLogRecordItem) | Renders the current message into a given ICustomLogRecordBuilder. |