Class NameAbbreviator.PatternAbbreviator
java.lang.Object
org.apache.logging.log4j.core.pattern.NameAbbreviator
org.apache.logging.log4j.core.pattern.NameAbbreviator.PatternAbbreviator
- Enclosing class:
NameAbbreviator
Pattern abbreviator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NameAbbreviator.PatternAbbreviatorFragment[]
Element abbreviation patterns. -
Constructor Summary
ConstructorsConstructorDescriptionCreate PatternAbbreviator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
abbreviate
(String original, StringBuilder destination) Abbreviates name.(package private) NameAbbreviator.PatternAbbreviatorFragment
fragment
(int index) Methods inherited from class org.apache.logging.log4j.core.pattern.NameAbbreviator
getAbbreviator, getDefaultAbbreviator
-
Field Details
-
fragments
Element abbreviation patterns.
-
-
Constructor Details
-
PatternAbbreviator
PatternAbbreviator(List<NameAbbreviator.PatternAbbreviatorFragment> fragments) Create PatternAbbreviator.- Parameters:
fragments
- element abbreviation patterns.
-
-
Method Details
-
abbreviate
Abbreviates name.- Specified by:
abbreviate
in classNameAbbreviator
- Parameters:
original
- the original string to abbreviatedestination
- buffer that abbreviated name is appended to
-
fragment
-