Class MessageFormatCache

java.lang.Object
net.logstash.logback.marker.MessageFormatCache

public class MessageFormatCache extends Object
A cache for MessageFormat objects.

Since only a small subset of MessageFormats 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 Details

  • Constructor Details

    • MessageFormatCache

      public MessageFormatCache()
  • Method Details