Class NamePatternConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.apache.logging.log4j.core.pattern.NamePatternConverter
- All Implemented Interfaces:
PatternConverter
- Direct Known Subclasses:
ClassNamePatternConverter
,LoggerPatternConverter
Abstract base class for other pattern converters which can return only parts of their name.
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGER
Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY
-
Constructor Summary
ModifierConstructorDescriptionprotected
NamePatternConverter
(String name, String style, String[] options) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
abbreviate
(String original, StringBuilder destination) Abbreviate name in string buffer.Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
emptyVariableOutput, format, format, handlesThrowable, isVariable
Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
-
Constructor Details
-
NamePatternConverter
Constructor.- Parameters:
name
- name of converter.style
- style name for associated output.options
- options, may be null, first element will be interpreted as an abbreviation pattern.
-
-
Method Details
-
abbreviate
Abbreviate name in string buffer.- Parameters:
original
- string containing name.destination
- the StringBuilder to write to
-