Class Logger

java.lang.Object
  |
  +--Logger

public class Logger
extends java.lang.Object

Logger is a convenience API (using the Facade design pattern) for logging LogRecords in Logs. We expect this to be extended with new kinds of events to log.


Constructor Summary
Logger(Log log)
          Constructor that takes the Log to use.
 
Method Summary
 void addMethodEntry(java.lang.Object instance, java.lang.String method)
          Logs a "method entry" event.
 void addMethodExit(java.lang.Object instance, java.lang.String method)
          Logs a "method exit" event.
 Log getLog()
          Accessor method for making use of the Log directly.
 void printAll(long windowMS)
          Prints events returned from getAll().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(Log log)
Constructor that takes the Log to use.

Method Detail

getLog

public Log getLog()
Accessor method for making use of the Log directly.


printAll

public void printAll(long windowMS)
Prints events returned from getAll().


addMethodEntry

public void addMethodEntry(java.lang.Object instance,
                           java.lang.String method)
Logs a "method entry" event.


addMethodExit

public void addMethodExit(java.lang.Object instance,
                          java.lang.String method)
Logs a "method exit" event.