Open sandboxFocus

Interface ILogRecordBuilder

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 : IDisposable

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 Dispose().

EndWriteItem(LogRecordItem)

Ends building a specified item.

SetException(Exception)

Assigns an Exception to the record.

SetExecutionTime(double, bool)

Sets an execution time to the record.

WriteParameter<T>(int, in ReadOnlySpan<char>, T?, in LogParameterOptions)

Writes a parameter.

WriteString(in ReadOnlySpan<char>)

Writes a string.

Extension Methods