Class LogQueue

  • All Implemented Interfaces:
    ILogQueue

    public class LogQueue
    extends java.lang.Object
    implements ILogQueue
    A class represents a log queue.

    Version:
    $Revision$, $Date$
    Author:
    mzhao
    • Constructor Detail

      • LogQueue

        public LogQueue()
        Constructs a log queue.
    • Method Detail

      • getLogQueue

        public static ILogQueue getLogQueue()
      • init

        public void init()
        Initializes the log queue.

        Specified by:
        init in interface ILogQueue
      • shutdown

        public void shutdown()
        Stops this log queue: shuts down all registered listeners

        Specified by:
        shutdown in interface ILogQueue
      • log

        public void log​(ILogEvent event)
        Logs an event, and notifies logger to reuse the event.
        Specified by:
        log in interface ILogQueue
        Parameters:
        event - the log event
      • flush

        public void flush()
        Flushes the log buffers (if any)
        Specified by:
        flush in interface ILogQueue