PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomICustom­Log­Record­Builder
Open sandboxFocus

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

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, Boolean)

Sets an execution time to the record.

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

Writes a custom parameter.

WriteCustomString(in CharSpan)

Writes a string.