Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<ILogEventListener> |
mListeners |
Constructor and Description |
---|
LogQueue()
Constructs a log queue.
|
Modifier and Type | Method and Description |
---|---|
void |
addLogEventListener(ILogEventListener listener)
Adds an event listener.
|
void |
flush()
Flushes the log buffers (if any)
|
static ILogQueue |
getLogQueue() |
void |
init()
Initializes the log queue.
|
void |
log(ILogEvent event)
Logs an event, and notifies logger to reuse the event.
|
void |
removeLogEventListener(ILogEventListener listener)
Removes an event listener.
|
void |
shutdown()
Stops this log queue: shuts down all registered listeners
|
protected java.util.Vector<ILogEventListener> mListeners
public static ILogQueue getLogQueue()
public void shutdown()
public void addLogEventListener(ILogEventListener listener)
addLogEventListener
in interface ILogQueue
listener
- the log event listenerpublic void removeLogEventListener(ILogEventListener listener)
removeLogEventListener
in interface ILogQueue
listener
- the log event listenerpublic void log(ILogEvent event)