org.apache.logging.log4j.core.pattern
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
public abstract class NamePatternConverter
- extends LogEventPatternConverter
Abstract base class for other pattern converters which can return only parts of their name.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamePatternConverter
protected NamePatternConverter(String name,
String style,
String[] options)
- 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.
abbreviate
protected final String abbreviate(String buf)
- Abbreviate name in string buffer.
- Parameters:
buf
- string buffer containing name.
- Returns:
- The abbreviated name.
Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved. Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.