|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton com.jalios.jcms.tools.JCMSAppender
public class JCMSAppender
A log4j appender that keeps from 5 to 500 LoggingEvent inside a list.
It does not need any layout.
<appender name="JCMS" class="com.jalios.jcms.tools.JCMSAppender"> <param name="MaximumEventNbr" value="20"/> </appender>
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
JCMSAppender()
|
Method Summary | |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
|
void |
close()
|
static JCMSAppender |
getLastInstanceCreated()
Return the last JCMSAppender instance that was created. |
List |
getLoggedEventList()
Returns a copy of the last logged events. |
List |
getLoggedEventList(org.apache.log4j.Level level)
Returns a copy of the last logged events matching the given Level. |
int |
getMaximumEventNbr()
Returns the current value of the MaximumEvent option. |
boolean |
requiresLayout()
|
void |
setMaximumEventNbr(int size)
The MaximumEventNbr option takes a integer between 5 and 500. |
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 |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public JCMSAppender()
Method Detail |
---|
public static JCMSAppender getLastInstanceCreated()
JCMSAppender
instance that was created.
JCMSAppender
instance or null if no JCMSAppender
was buildpublic List getLoggedEventList()
public List getLoggedEventList(org.apache.log4j.Level level)
public void setMaximumEventNbr(int size)
public int getMaximumEventNbr()
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public boolean requiresLayout()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |