NetworkIO
Class NetworkLogger

java.lang.Object
  extended by NetworkIO.NetworkLogger

public class NetworkLogger
extends java.lang.Object

Simplistic logger that logs output to a file located in program directory. The name of each file is dictated by the name given via instantiation.


Constructor Summary
NetworkLogger(java.lang.String name)
          Creates a new instance of LogOutput
 
Method Summary
 void log(java.lang.String msg)
          Log a message to console (if available) and log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkLogger

public NetworkLogger(java.lang.String name)
Creates a new instance of LogOutput

Parameters:
name - The name to reference as source of logs. Also, the log file is name+" log.txt".
Method Detail

log

public void log(java.lang.String msg)
Log a message to console (if available) and log file.

Parameters:
msg - The message to display.