computational
Class EventLogManager

java.lang.Object
  extended by computational.LogManager
      extended by computational.EventLogManager

public class EventLogManager
extends LogManager

Version:
1.0
Author:
Massimo Bartoletti

Field Summary
 
Fields inherited from class computational.LogManager
datingEnabled, loggingEnabled
 
Constructor Summary
EventLogManager()
          Constucts a new logging manager which logs events on an internal buffer.
 
Method Summary
 java.util.List getEvents()
           
 void log(java.lang.Object msg)
          Logs the given event on the internal events buffer.
 
Methods inherited from class computational.LogManager
disableDating, disableLogging, enableDating, enableLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogManager

public EventLogManager()
Constucts a new logging manager which logs events on an internal buffer. By default, logging is enabled.

Method Detail

getEvents

public java.util.List getEvents()

log

public void log(java.lang.Object msg)
Logs the given event on the internal events buffer. This method is thread-safe, i.e. events logged by concurrent threads do not overlap.

Specified by:
log in class LogManager
Parameters:
msg - the event to be logged.