format

public String format(LogData logData, MetadataProcessor metadata)

Returns a formatted representation of the log message and metadata. Currently this class is only responsible for formatting the main body of the log message and not thing like log site, timestamps or thread information.

By default this method just returns:

append(logData, metadata, new StringBuilder()).toString()

Formatter implementations may be able to implement it more efficiently (e.g. if they can safely detect when no formatting is required). See also the helper methods in .