rabbit.linkchecker
Interface Logger

All Known Implementing Classes:
SimpleLogger

public interface Logger

An interface for logging the page handled. For each URL that is visited by the linkchecker a call to log is made.


Method Summary
 void endLogging()
          This method is called when this Logger is stopped.
 void log(java.net.URL url, HTTPHeader header)
          This method is called when a request is fulfilled ok.
 void log(java.net.URL url, java.lang.String msg)
          This method is called upon on errors and other strange stuff.
 void startLogging(Config cfg)
          This method is called when this Logger is started.
 

Method Detail

log

public void log(java.net.URL url,
                java.lang.String msg)
This method is called upon on errors and other strange stuff.


log

public void log(java.net.URL url,
                HTTPHeader header)
This method is called when a request is fulfilled ok.


startLogging

public void startLogging(Config cfg)
This method is called when this Logger is started.

Parameters:
cfg - the global Config.

endLogging

public void endLogging()
This method is called when this Logger is stopped.