public abstract class PatternConverter
extends java.lang.Object
PatternConverter is an abtract class that provides the formatting functionality that derived classes need.
Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.
限定符和类型 | 字段和说明 |
---|---|
PatternConverter |
next |
限定符 | 构造器和说明 |
---|---|
protected |
PatternConverter() |
protected |
PatternConverter(FormattingInfo fi) |
限定符和类型 | 方法和说明 |
---|---|
protected abstract java.lang.String |
convert(LoggingEvent event)
Derived pattern converters must override this method in order to
convert conversion specifiers in the correct way.
|
void |
format(java.lang.StringBuffer sbuf,
LoggingEvent e)
A template method for formatting in a converter specific way.
|
void |
spacePad(java.lang.StringBuffer sbuf,
int length)
Fast space padding method.
|
public PatternConverter next
protected PatternConverter()
protected PatternConverter(FormattingInfo fi)
protected abstract java.lang.String convert(LoggingEvent event)
public void format(java.lang.StringBuffer sbuf, LoggingEvent e)
public void spacePad(java.lang.StringBuffer sbuf, int length)