Defines a builder of custom log records. A log record is typically, but not necessarily, a string. A log record can be composed of one or several items.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public interface ICustomLogRecordBuilder : IDisposableRemarks
To implement your own type of message, implement IMessage and render the message into the ICustomLogRecordBuilder passed to the Write(ICustomLogRecordBuilder, CustomLogRecordItem) method.
Methods
| Name | Description |
|---|---|
| BeginWriteItem(CustomLogRecordItem, in CustomLogRecordTextOptions) | Begins building the specified item. |
| Complete() | Completes the creation of the record. It must be invoked before Dispose(). |
| EndWriteItem(CustomLogRecordItem) | Ends building the specified item. |
| SetException(Exception) | Assigns an Exception to the record. |
| SetExecutionTime(double, bool) | Sets the execution time of the record. |
| WriteCustomParameter<T>(int, in CharSpan, T, in CustomLogParameterOptions) | Writes a custom parameter. |
| WriteCustomString(in CharSpan) | Writes a string. |