Package org.jpos.util
Class BufferedLogListener
- java.lang.Object
-
- org.jpos.util.BufferedLogListener
-
- All Implemented Interfaces:
java.util.EventListener
,Configurable
,LogListener
,LogProducer
- Direct Known Subclasses:
BufferedExceptionLogListener
public class BufferedLogListener extends java.lang.Object implements LogListener, Configurable, LogProducer
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SIZE
-
Constructor Summary
Constructors Constructor Description BufferedLogListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(LogListener listener)
int
getMaxSize()
LogEvent
log(LogEvent ev)
void
removeAllListeners()
void
removeListener(LogListener listener)
void
setConfiguration(Configuration cfg)
-
-
-
Field Detail
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BufferedLogListener
public BufferedLogListener()
-
-
Method Detail
-
log
public LogEvent log(LogEvent ev)
- Specified by:
log
in interfaceLogListener
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
addListener
public void addListener(LogListener listener)
- Specified by:
addListener
in interfaceLogProducer
-
removeListener
public void removeListener(LogListener listener)
- Specified by:
removeListener
in interfaceLogProducer
-
removeAllListeners
public void removeAllListeners()
- Specified by:
removeAllListeners
in interfaceLogProducer
-
getMaxSize
public int getMaxSize()
-
-