|
Log4j 1.3alpha0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.AppenderSkeleton | +--org.apache.log4j.chainsaw.messages.MessageCenterAppender
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, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
MessageCenterAppender()
|
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()
Configurators call this method to determine if the appender requires a layout. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageCenterAppender()
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()
Appender
true
, meaning that layout is
required, then the configurator will configure an layout using the
configuration information at its disposal. If this method returns
false
, meaning that a layout is not required, then layout
configuration will be skipped even if there is available layout
configuration information at the disposal of the configurator..
In the rather exceptional case, where the appender implementation admits
a layout but can also work without it, then the appender should return
true
.
public void clearModel()
|
Log4j 1.3alpha0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |