public class JCMSAppender
extends org.apache.log4j.AppenderSkeleton
<appender name="JCMS" class="com.jalios.jcms.tools.JCMSAppender"> <param name="MaximumEventNbr" value="20"/> </appender>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
JCMSAppender() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
static JCMSAppender |
getLastInstanceCreated()
Return the last
JCMSAppender instance that was created. |
java.util.List |
getLoggedEventList()
Returns a copy of the last logged events.
|
java.util.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.
|
public static final java.lang.String REVISION
public static JCMSAppender getLastInstanceCreated()
JCMSAppender
instance that was created.JCMSAppender
instance or null if no JCMSAppender
was buildpublic java.util.List getLoggedEventList()
public java.util.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()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.