Package net.logstash.logback.marker
Class MessageFormatCache
java.lang.Object
net.logstash.logback.marker.MessageFormatCache
A cache for
MessageFormat
objects.
Since only a small subset of MessageFormat
s are generally used by
SingleFieldAppendingMarker
, the MessageFormatCache
will
cache them (per thread) so that they can be reused.
This is a performance optimization to save MessageFormat
construction and parsing time
for each argument/marker.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MessageFormatCache
public MessageFormatCache()
-
-
Method Details
-
getMessageFormat
-