Format(LogMessage, LogFormatter, ref LogMessageFormatSegments) Method

Definition

Assembly XenoAtom.Logging.dll

Formats a message into the pooled buffer using the provided formatter.

public ReadOnlySpan<char> Format(LogMessage logMessage, LogFormatter formatter, ref LogMessageFormatSegments segments)

Parameters

logMessage
LogMessage

The message to format.

formatter
LogFormatter

The formatter used to render text.

segments
LogMessageFormatSegments

Associated formatting segments.

Returns

ReadOnlySpan<Char>
A span over the formatted characters.