Open sandboxFocus

Interface ICustomLogRecordBuilder

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.dll
Syntax
public interface ICustomLogRecordBuilder : IDisposable

Methods

Name Description
BeginWriteItem(CustomLogRecordItem, in CustomLogRecordTextOptions)

Begins to build a specified item.

Complete()

Completes the creation of the record. It must be invoked before Dispose().

EndWriteItem(CustomLogRecordItem)

Ends building a specified item.

SetException(Exception)

Assigns an Exception to the record.

SetExecutionTime(double, bool)

Sets an execution time to the record.

WriteCustomParameter<T>(int, in CharSpan, T, in CustomLogParameterOptions)

Writes a custom parameter.

WriteCustomString(in CharSpan)

Writes a string.