computational
Class TextLogManager

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

public class TextLogManager
extends LogManager

Version:
1.0
Author:
Massimo Bartoletti

Field Summary
protected  java.io.PrintWriter logStream
          The stream on which to perform output.
 
Fields inherited from class computational.LogManager
datingEnabled, loggingEnabled
 
Constructor Summary
TextLogManager(java.io.OutputStream out)
          Constucts a new logging manager which outputs on the specified stream.
 
Method Summary
 void log(java.lang.Object msg)
          Logs the string representing the specified object on the predefined output stream.
 
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
 

Field Detail

logStream

protected java.io.PrintWriter logStream
The stream on which to perform output.

Constructor Detail

TextLogManager

public TextLogManager(java.io.OutputStream out)
Constucts a new logging manager which outputs on the specified stream. By default, logging is enabled.

Parameters:
out - the output stream on which to perform logging.
Method Detail

log

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

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