sg.edu.nus.logging
Interface LogEventWatcher

All Known Implementing Classes:
AbstractMainFrame, BootstrapGUI, ServerGUI

public interface LogEventWatcher

When a LogEvent happens, an AbstractPeer can call addLogEvent(LogEvent event) in a EventListener.

Version:
1.0 2006-7-17
Author:
Xu Linhao

Method Summary
 void log(java.lang.String type, java.lang.String desp, java.lang.String host, java.lang.String src, java.lang.String dest)
          Add a log event for displaying to users.
 

Method Detail

log

void log(java.lang.String type,
         java.lang.String desp,
         java.lang.String host,
         java.lang.String src,
         java.lang.String dest)
Add a log event for displaying to users. The format of the log event is defined by LogEvent.

Parameters:
type - the event type
desp - the event description
host - the host name who sends requests
src - the IP address of the requester
dest - the IP address of the receiver