PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/ICustom­Log­Record­Builder Interface

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: 6.6.7.0 (6.6.7.0)
Syntax
C#
public interface ICustomLogRecordBuilder : IDisposable

The ICustomLogRecordBuilder type exposes the following members.

Methods
  NameDescription
Public methodBeginWriteItem
Begins to build a specified item.
Public methodComplete
Completes the creation of the record. It must be invoked before Dispose().
Public methodEndWriteItem
Ends building a specified item.
Public methodSetException
Assigns an Exception to the record.
Public methodSetExecutionTime
Sets an execution time to the record.
Public methodWriteCustomParameter<T>
Writes a custom parameter.
Public methodWriteCustomString
Writes a string.
See Also