|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.spi.ComponentBase | +--org.apache.log4j.AppenderSkeleton | +--org.apache.log4j.varia.ListModelAppender
A very basic appender that takes the events and stores them in to a ListModel for late retrieval.
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, headFilter, layout, name, tailFilter, threshold |
Fields inherited from class org.apache.log4j.spi.ComponentBase |
repository |
Constructor Summary | |
ListModelAppender()
|
Method Summary | |
protected void |
append(LoggingEvent event)
Subclasses of AppenderSkeleton should implement this method
to perform actual logging. |
void |
clearModel()
Removes all the Events from the model |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
javax.swing.ListModel |
getModel()
Returns a reference to the ListModel that contains all the LoggingEvents that have been appended to this class. |
boolean |
requiresLayout()
|
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold |
Methods inherited from class org.apache.log4j.spi.ComponentBase |
getLogger, setLoggerRepository |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.log4j.Appender |
setLoggerRepository |
Constructor Detail |
public ListModelAppender()
Method Detail |
public final javax.swing.ListModel getModel()
protected void append(LoggingEvent event)
AppenderSkeleton
AppenderSkeleton
should implement this method
to perform actual logging. See also AppenderSkeleton.doAppend
method.
append
in class AppenderSkeleton
public void close()
Appender
It is a programming error to append to a closed appender.
public boolean requiresLayout()
public void clearModel()
|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |