ICustomLogRecordBuilder Interface |
Allows to build a custom log record (typically, but not necessarily, a string). A log record can be composed of one of several
items.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ICustomLogRecordBuilder : IDisposable
The ICustomLogRecordBuilder type exposes the following members.
Name | Description | |
---|---|---|
BeginWriteItem |
Begins to build a specified item.
| |
Complete |
Completes the creation of the record. It must be invoked before Dispose().
| |
EndWriteItem |
Ends building a specified item.
| |
SetException |
Assigns an Exception to the record.
| |
SetExecutionTime |
Sets an execution time to the record.
| |
WriteCustomParameter<T> |
Writes a custom parameter.
| |
WriteCustomString |
Writes a string.
|