Package org.apache.log4j.pattern
Class NameAbbreviator.DropElementAbbreviator
- java.lang.Object
-
- org.apache.log4j.pattern.NameAbbreviator
-
- org.apache.log4j.pattern.NameAbbreviator.DropElementAbbreviator
-
- Enclosing class:
- NameAbbreviator
private static class NameAbbreviator.DropElementAbbreviator extends NameAbbreviator
Abbreviator that drops starting path elements.
-
-
Field Summary
Fields Modifier and Type Field Description private intcountMaximum number of path elements to output.
-
Constructor Summary
Constructors Constructor Description DropElementAbbreviator(int count)Create new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabbreviate(int nameStart, java.lang.StringBuffer buf)Abbreviate name.-
Methods inherited from class org.apache.log4j.pattern.NameAbbreviator
getAbbreviator, getDefaultAbbreviator
-
-
-
-
Method Detail
-
abbreviate
public void abbreviate(int nameStart, java.lang.StringBuffer buf)Abbreviate name.- Specified by:
abbreviatein classNameAbbreviator- Parameters:
buf- buffer to append abbreviation.nameStart- start of name to abbreviate.
-
-