Package net.logstash.logback.abbreviator
Class CachingAbbreviator
java.lang.Object
net.logstash.logback.abbreviator.CachingAbbreviator
- All Implemented Interfaces:
Abbreviator
- Direct Known Subclasses:
CachingAbbreviator
An
Abbreviator that caches results from a delegate abbreviator.
Logger names are typically reused constantly, so caching abbreviations
of class names helps performance.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CachingAbbreviator
-
-
Method Details
-
abbreviate
- Specified by:
abbreviatein interfaceAbbreviator
-
clear
public void clear()Clears the cache.
-