public class VisibilityLogger
extends org.apache.log4j.AppenderSkeleton
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<LoggingEntry> |
entries
The entries.
|
protected static org.apache.log4j.Logger |
logger
The logger.
|
protected int |
maxEntries
The max entries.
|
Constructor and Description |
---|
VisibilityLogger() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
protected void |
append(org.apache.log4j.spi.LoggingEvent evt) |
void |
close() |
java.util.ArrayList<LoggingEntry> |
getLog()
Gets the log.
|
int |
getMaxEntries()
Gets the max entries.
|
void |
post(LoggingEntry entry)
Post.
|
boolean |
requiresLayout() |
void |
setMaxEntries(int val)
Sets the max entries.
|
protected static org.apache.log4j.Logger logger
public static java.util.ArrayList<LoggingEntry> entries
protected int maxEntries
public int getMaxEntries()
public void setMaxEntries(int val)
val
- the new max entriespublic void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
protected void append(org.apache.log4j.spi.LoggingEvent evt)
append
in class org.apache.log4j.AppenderSkeleton
public void close()
close
in interface org.apache.log4j.Appender
close
in class org.apache.log4j.AppenderSkeleton
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
requiresLayout
in class org.apache.log4j.AppenderSkeleton
public java.util.ArrayList<LoggingEntry> getLog()
public void post(LoggingEntry entry)
entry
- the entry