A LogRecord formatter that takes a sequence of LogRecords and combines them
into a single summary result. Formating of the head, LogRecord, and tail are
delegated to the wrapped formatter.
The LogManager properties are:
- <formatter-name>.comparator name of a
Comparator class used to choose the collected
LogRecord. If a comparator is specified then the max
LogRecord is chosen. If comparator is set to the string literal
null, then the last record is chosen. (defaults to
SeverityComparator
)
- <formatter-name>.comparator.reverse a boolean
true to collect the min LogRecord or false to
collect the max LogRecord. (defaults to false)
- <formatter-name>.format the
MessageFormat string used to format the
collected summary statistics. The arguments are explained in detail in the
getTail documentation.
(defaults to "{0}{1}{2}{4,choice,-1#|0#|0<... {4,number,integer} more}\n")
- <formatter-name>.formatter name of a Formatter class used
to format the collected LogRecord. (defaults to
CompactFormatter
)