Provides debug logging by wrapping java.util.logging.Logger.
Sample usage:
import java.util.logging.Level;
import org.dlese.dpc.logging.DebugLogger;
import org.dlese.dpc.logging.DleseLogManager;
DebugLogger log = null;
try {
log = DleseLogManager.getDebugLogger(
DleseLogManager.LOG_STD,
timeType,
outputFormat,
appendFlag,
loggerLevel,
outfilename);
}
catch( LogException lexc) {
...
}
// Each logging level has a convenience method, so
// the following two calls are equivalent:
log.log( Level.INFO, "some message");
log.info( "some message");
// The 7 levels are:
log.finest("some message");
log.fine("some message");
log.fine("some message");
log.config("some message");
log.info("some message");
log.warning("some message");
log.severe("some message");
// Additionally, the java.util.logging.Logger.log() method
// can accept an array of Objects, also to be printed in the log:
log.log(Level.INFO,
"some message",
new Object[] { new Integer(123), new Double(77.88)});
// The log file is closed automatically by the logging framework.