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