|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.pattern.PatternConverter org.apache.log4j.pattern.LoggingEventPatternConverter
public abstract class LoggingEventPatternConverter
LoggingEventPatternConverter is a base class for pattern converters that can format information from instances of LoggingEvent.
Constructor Summary | |
---|---|
protected |
LoggingEventPatternConverter(String name,
String style)
Constructs an instance of LoggingEventPatternConverter. |
Method Summary | |
---|---|
abstract void |
format(LoggingEvent event,
StringBuffer toAppendTo)
Formats an event into a string buffer. |
void |
format(Object obj,
StringBuffer output)
Formats an object into a string buffer. |
boolean |
handlesThrowable()
Normally pattern converters are not meant to handle Exceptions although few pattern converters might. |
Methods inherited from class org.apache.log4j.pattern.PatternConverter |
---|
getName, getStyleClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LoggingEventPatternConverter(String name, String style)
name
- name of converter.style
- CSS style for output.Method Detail |
---|
public abstract void format(LoggingEvent event, StringBuffer toAppendTo)
event
- event to format, may not be null.toAppendTo
- string buffer to which the formatted event will be appended. May not be null.public void format(Object obj, StringBuffer output)
format
in class PatternConverter
obj
- event to format, may not be null.output
- string buffer to which the formatted event will be appended. May not be null.public boolean handlesThrowable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |