java.lang.Object
org.apache.log4j.AppenderSkeleton
de.danet.an.util.log4j.ListAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
- public class ListAppender
- extends org.apache.log4j.AppenderSkeleton
This class provides an appender that adds log messages to a list
found in the MDC.
- Version:
- $Revision: 1.4 $
|
Nested Class Summary |
static class |
ListAppender.UIMessage
This class defines the log message sent to user interface. |
|
Constructor Summary |
ListAppender()
Creates an instance of ListAppender
with all attributes initialized to default values. |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
logger
private static final org.apache.log4j.Category logger
MDC_LIST_KEY
public static final java.lang.String MDC_LIST_KEY
- Unter this key is the appended messages saved in the MDC.
- See Also:
- Constant Field Values
ListAppender
public ListAppender()
- Creates an instance of
ListAppender
with all attributes initialized to default values.
append
public void append(org.apache.log4j.spi.LoggingEvent event)
- Forwards the message to the EJBSink bean.
close
public void close()
- Internal method. Close the database connection and flush the buffer.
requiresLayout
public boolean requiresLayout()
- Internal method. Returns true, you may define your own layout...