LogMessageFormatter

public abstract class LogMessageFormatter

API for formatting Flogger log messages from logData and scoped metadata.

This API is not used directly in the core Flogger libraries yet, but will become part of the log message formatting API eventually. For now it should be considered an implementation detail and definitely unstable.

Constructors

Link copied to clipboard
public void LogMessageFormatter()

Functions

Link copied to clipboard
@CanIgnoreReturnValue()
public abstract StringBuilder append(LogData logData, MetadataProcessor metadata, StringBuilder buffer)
Formats the log message and metadata into the given buffer.
Link copied to clipboard
public String format(LogData logData, MetadataProcessor metadata)
Returns a formatted representation of the log message and metadata.