Package org.korz.log4j2
Class CollapsedNameAbbreviator
- java.lang.Object
-
- org.apache.logging.log4j.core.pattern.NameAbbreviator
-
- org.korz.log4j2.CollapsedNameAbbreviator
-
public class CollapsedNameAbbreviator extends org.apache.logging.log4j.core.pattern.NameAbbreviatorA NameAbbreviator that abbreviates packages until the name is short enough.
-
-
Constructor Summary
Constructors Constructor Description CollapsedNameAbbreviator(int max)Creates a new abbreviator using the default delimiter.CollapsedNameAbbreviator(int max, char delimiter)Creates a new abbreviator using the default delimiter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabbreviate(String original, StringBuilder destination)
-
-
-
Constructor Detail
-
CollapsedNameAbbreviator
public CollapsedNameAbbreviator(int max)
Creates a new abbreviator using the default delimiter.- Parameters:
max- The maximum name length.
-
CollapsedNameAbbreviator
public CollapsedNameAbbreviator(int max, char delimiter)Creates a new abbreviator using the default delimiter.- Parameters:
max- The maximum name length.delimiter- The character that separates words.
-
-
Method Detail
-
abbreviate
public void abbreviate(String original, StringBuilder destination)
- Specified by:
abbreviatein classorg.apache.logging.log4j.core.pattern.NameAbbreviator
-
-