|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(java.lang.String name,
java.lang.String style)
Constructs an instance of LoggingEventPatternConverter. |
Method Summary | |
---|---|
abstract void |
format(org.apache.log4j.spi.LoggingEvent event,
java.lang.StringBuffer toAppendTo)
Formats an event into a string buffer. |
void |
format(java.lang.Object obj,
java.lang.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(java.lang.String name, java.lang.String style)
name
- name of converter.style
- CSS style for output.Method Detail |
---|
public abstract void format(org.apache.log4j.spi.LoggingEvent event, java.lang.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(java.lang.Object obj, java.lang.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 |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.