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 voidaddLogEventListener(ILogEventListener listener)Adds an event listener.voidflush()Flushes the log buffers (if any)static ILogQueuegetLogQueue()voidinit()Initializes the log queue.voidlog(ILogEvent event)Logs an event, and notifies logger to reuse the event.voidremoveLogEventListener(ILogEventListener listener)Removes an event listener.voidshutdown()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:
addLogEventListenerin interfaceILogQueue- Parameters:
listener- the log event listener
-
removeLogEventListener
public void removeLogEventListener(ILogEventListener listener)
Removes an event listener.- Specified by:
removeLogEventListenerin interfaceILogQueue- Parameters:
listener- the log event listener
-
log
public void log(ILogEvent event)
Logs an event, and notifies logger to reuse the event.
-
-