Top Description Methods
org.apache.logging.log4j.util

public Interface MultiFormatStringBuilderFormattable

extends MultiformatMessage, StringBuilderFormattable
Known Direct Implementers
org.apache.logging.log4j.message.MapMessage
Imports
org.apache.logging.log4j.message.MultiformatMessage

A Message that can render itself in more than one way. The format string is used by the Message implementation as extra information that it may use to help it to determine how to format itself. For example, MapMessage accepts a format of "XML" to tell it to render the Map as XML instead of its default format of {key1="value1" key2="value2"}.
Since
2.10

Method Summary

Modifier and TypeMethod and Description
public void
formatTo(String[]
An array of Strings that provide extra information about how to format the message. Each MultiFormatStringBuilderFormattable implementation is free to use the provided formats however they choose.
formats
,
StringBuilder
the StringBuilder to write into
buffer
)

Writes a text representation of this object into the specified StringBuilder, ideally without allocating temporary objects.

Inherited from org.apache.logging.log4j.message.MultiformatMessage:
getFormatsgetFormattedMessage
Inherited from org.apache.logging.log4j.util.StringBuilderFormattable:
formatTo

Method Detail

formatToback to summary
public void formatTo(String[] formats, StringBuilder buffer)

Writes a text representation of this object into the specified StringBuilder, ideally without allocating temporary objects.

Parameters
formats:String[]

An array of Strings that provide extra information about how to format the message. Each MultiFormatStringBuilderFormattable implementation is free to use the provided formats however they choose.

buffer:StringBuilder

the StringBuilder to write into