Package winstone

Class Logger

java.lang.Object
winstone.Logger

public class Logger extends Object
A utility class for logging event and status messages.

Launcher.initLogger(java.util.Map<java.lang.String, java.lang.String>) examines the parsed --logfile option and, if present, creates a new PrintStream and sets standard output (stdout) and standard error (stderr) to that new stream with System.setOut(java.io.PrintStream) and System.setErr(java.io.PrintStream). If this takes place after JUL has initialized the root logger, the root logger will not be aware of the switch because its ConsoleHandler will have already read the old value of System.err. For this reason, parsing the --logfile option and redirecting the standard output (stdout) and standard error (stderr) streams must take place prior to JUL initialization.

Version:
$Id: Logger.java,v 1.8 2006/11/09 06:01:43 rickknowles Exp $
Author:
Rick Knowles