| |
|
| java.lang.Object org.objectweb.util.monolog.wrapper.log4j.GenericHandler
GenericHandler | public class GenericHandler implements Appender,Handler(Code) | | This class is a generic implementation of the Handler interface. This class
delegates all calls on a log4j Appender. It is also an Appender interceptor.
This class can therefore be referenced into the log4j struture as an
Appender.
There are three ways to specify the inner Appender:
- by the construstor with the appender instance
- by the setAppender method with the appender instance
- by the setAttribute method with the appender class name. This method
tries to instanciate the class, and initializes the new Appender with all
attribute which has been specified before. Even the filters and the layout
are memorized.
author: Sebastien Chassande-Barrioz |
APPENDER_CLASS_NAME_ATTR | final public static String APPENDER_CLASS_NAME_ATTR(Code) | | This constant can be used to specify the class name of the inner appender
|
appender | protected Appender appender(Code) | | The inner appender
|
layout | protected Layout layout(Code) | | |
GenericHandler | public GenericHandler()(Code) | | |
GenericHandler | public GenericHandler(Appender a)(Code) | | |
addFilter | public void addFilter(Filter newFilter)(Code) | | |
clearFilters | public void clearFilters()(Code) | | |
close | public void close()(Code) | | |
doAppend | public void doAppend(LoggingEvent event)(Code) | | |
getAppender | public Appender getAppender()(Code) | | |
getErrorHandler | public ErrorHandler getErrorHandler()(Code) | | |
getFilter | public Filter getFilter()(Code) | | |
getLayout | public Layout getLayout()(Code) | | |
requiresLayout | public boolean requiresLayout()(Code) | | |
setAppender | public void setAppender(Appender a)(Code) | | |
setErrorHandler | public void setErrorHandler(ErrorHandler errorHandler)(Code) | | |
setLayout | public void setLayout(Layout layout)(Code) | | |
|
|
|