MetalamaAPI documentationFlashtrace APIFlashtrace.​RecordsILog­Record­Builder
Open sandboxFocus

ILogRecordBuilder Interface

Allows to build a log record (typically, but not necessarily, a string). A log record can be composed of one of several items.

Namespace: Flashtrace.Records
Assembly: Flashtrace.dll
Syntax
public interface ILogRecordBuilder

Methods

Name Description
BeginWriteItem(LogRecordItem, in LogRecordTextOptions)

Begins to build a specified item.

Complete()

Completes the creation of the record. It must be invoked before System.IDisposable.Dispose.

EndWriteItem(LogRecordItem)

Ends building a specified item.

SetException(Exception)

Assigns an System.Exception to the record.

SetExecutionTime(Double, Boolean)

Sets an execution time to the record.

WriteParameter<T>(Int32, in ReadOnlySpan<Char>, T, in LogParameterOptions)

Writes a parameter.

WriteString(in ReadOnlySpan<Char>)

Writes a string.