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 LogListenerpublic void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration in interface Configurablecfg - Configuration objectConfigurationExceptionpublic void addListener(LogListener listener)
addListener in interface LogProducerpublic void removeListener(LogListener listener)
removeListener in interface LogProducerpublic void removeAllListeners()
removeAllListeners in interface LogProducerpublic int getMaxSize()