sg.edu.nus.util
Class PeerLog

java.lang.Object
  extended by sg.edu.nus.util.PeerLog

public class PeerLog
extends java.lang.Object

Implement logging function for peers


Constructor Summary
PeerLog(java.lang.String FileName)
          Constructor
 
Method Summary
 void Exit()
          Finish, close the log file
 void WriteLog(java.lang.String data)
          Log network message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerLog

public PeerLog(java.lang.String FileName)
Constructor

Parameters:
FileName - log file name
Method Detail

WriteLog

public void WriteLog(java.lang.String data)
Log network message

Parameters:
Data - message

Exit

public void Exit()
Finish, close the log file