computational
Class LogManager

java.lang.Object
  extended by computational.LogManager
Direct Known Subclasses:
EventLogManager, SilentLogManager, TextLogManager

public abstract class LogManager
extends java.lang.Object

Version:
1.0
Author:
Massimo Bartoletti

Field Summary
protected  boolean datingEnabled
          Tells whether dating is enabled or disabled on this service.
protected  boolean loggingEnabled
          Tells whether logging is enabled or disabled on this service.
 
Constructor Summary
LogManager()
           
 
Method Summary
 void disableDating()
          Disables dating on this LogManager.
 void disableLogging()
          Disables logging on this LogManager.
 void enableDating()
          Enables dating on this LogManager.
 void enableLogging()
          Enables logging on this LogManager.
abstract  void log(java.lang.Object msg)
          Logs the specified object on the predefined output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datingEnabled

protected boolean datingEnabled
Tells whether dating is enabled or disabled on this service.


loggingEnabled

protected boolean loggingEnabled
Tells whether logging is enabled or disabled on this service.

Constructor Detail

LogManager

public LogManager()
Method Detail

disableDating

public void disableDating()
Disables dating on this LogManager.


disableLogging

public void disableLogging()
Disables logging on this LogManager.


enableDating

public void enableDating()
Enables dating on this LogManager.


enableLogging

public void enableLogging()
Enables logging on this LogManager.


log

public abstract void log(java.lang.Object msg)
Logs the specified object on the predefined output stream. This method is thread-safe, i.e. objects logged by concurrent threads do not overlap.

Parameters:
msg - the object to be logged.