/** * 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. */ public class Logger { private Log log; /** * Constructor that takes the Log to use. */ public Logger(Log log) { this.log = log; } /** * Accessor method for making use of the Log directly. */ public Log getLog() { return log; } /** * Prints events returned from getAll(). */ public void printAll(long windowMS) { LogRecord[] records = log.getAll(windowMS); for (int i = 0; i