Package com.netscape.cms.logging
Class LogQueue
- java.lang.Object
-
- com.netscape.cms.logging.LogQueue
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector<ILogEventListener>
mListeners
-
Constructor Summary
Constructors Constructor Description LogQueue()
Constructs a log queue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Field Detail
-
mListeners
protected java.util.Vector<ILogEventListener> mListeners
-
-
Method Detail
-
getLogQueue
public static ILogQueue getLogQueue()
-
shutdown
public void shutdown()
Stops this log queue: shuts down all registered listeners
-
addLogEventListener
public void addLogEventListener(ILogEventListener listener)
Adds an event listener.- Specified by:
addLogEventListener
in interfaceILogQueue
- Parameters:
listener
- the log event listener
-
removeLogEventListener
public void removeLogEventListener(ILogEventListener listener)
Removes an event listener.- Specified by:
removeLogEventListener
in interfaceILogQueue
- Parameters:
listener
- the log event listener
-
log
public void log(ILogEvent event)
Logs an event, and notifies logger to reuse the event.
-
-