public class BufferedLogListener extends java.lang.Object implements LogListener, Configurable, LogProducer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
BufferedLogListener() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LogListener listener) |
int |
getMaxSize() |
LogEvent |
log(LogEvent ev) |
void |
removeAllListeners() |
void |
removeListener(LogListener listener) |
void |
setConfiguration(Configuration cfg) |
public static final int DEFAULT_SIZE
public LogEvent log(LogEvent ev)
log
in interface LogListener
public void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration
in interface Configurable
cfg
- Configuration objectConfigurationException
public void addListener(LogListener listener)
addListener
in interface LogProducer
public void removeListener(LogListener listener)
removeListener
in interface LogProducer
public void removeAllListeners()
removeAllListeners
in interface LogProducer
public int getMaxSize()