public abstract class LogAppender
extends org.apache.log4j.AppenderSkeleton
<appender name="JCMS" class="com.jalios.jcms.mail.MailAppender"> <param name="MaximumEventNbr" value="20"/> </appender>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<org.apache.log4j.spi.LoggingEvent> |
eventList |
protected int |
maximumEventNbr |
protected java.lang.String |
prefix |
static java.lang.String |
REVISION |
Constructor and Description |
---|
LogAppender() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
java.util.List<org.apache.log4j.spi.LoggingEvent> |
getLoggedEventList()
Returns a new List of latest LoggingEvent
|
int |
getMaximumEventNbr()
Returns the current value of the MaximumEvent option.
|
java.lang.String |
getPrefix() |
boolean |
requiresLayout() |
void |
setMaximumEventNbr(int size)
The MaximumEventNbr option takes a integer between 5 and 500.
|
void |
setPrefix(java.lang.String prefix) |
public static final java.lang.String REVISION
protected java.util.List<org.apache.log4j.spi.LoggingEvent> eventList
protected int maximumEventNbr
protected java.lang.String prefix
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public boolean requiresLayout()
public void close()
public void setMaximumEventNbr(int size)
public int getMaximumEventNbr()
public void setPrefix(java.lang.String prefix)
public java.lang.String getPrefix()
public java.util.List<org.apache.log4j.spi.LoggingEvent> getLoggedEventList()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.