java.lang.Object | |
↳ | org.apache.log4j.pattern.NameAbbreviator |
NameAbbreviator generates abbreviated logger and class names.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abbreviates a name in a StringBuffer.
| |||||||||||
Gets an abbreviator.
| |||||||||||
Gets default abbreviator.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Abbreviates a name in a StringBuffer.
nameStart | starting position of name in buf. |
---|---|
buf | buffer, may not be null. |
Gets an abbreviator. For example, "%logger{2}" will output only 2 elements of the logger name, %logger{-2} will drop 2 elements from the logger name, "%logger{1.}" will output only the first character of the non-final elements in the name, "%logger{1~.2~} will output the first character of the first element, two characters of the second and subsequent elements and will use a tilde to indicate abbreviated characters.
pattern | abbreviation pattern. |
---|
Gets default abbreviator.