org.apache.log4j.pattern
Class NamePatternConverter
java.lang.Object
org.apache.log4j.pattern.PatternConverter
org.apache.log4j.pattern.LoggingEventPatternConverter
org.apache.log4j.pattern.NamePatternConverter
- Direct Known Subclasses:
- ClassNamePatternConverter, LoggerPatternConverter
public abstract class NamePatternConverter
- extends LoggingEventPatternConverter
Base class for other pattern converters which can return only parts of their name.
- Author:
- Ceki Gülcü, Curt Arnold
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 void abbreviate(int nameStart,
StringBuffer buf)
- Abbreviate name in string buffer.
- Parameters:
nameStart
- starting position of name to abbreviate.buf
- string buffer containing name.
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.