Package net.sf.statcvs.util
Class ConsoleOutHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- net.sf.statcvs.util.ConsoleOutHandler
-
public class ConsoleOutHandler extends java.util.logging.StreamHandler
A simplified copy ofjava.util.logging.ConsoleHandler
. It writes toSystem.out
instead ofSystem.err
and uses theLogFormatter
to format- Version:
- $Id: ConsoleOutHandler.java,v 1.3 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
-
Constructor Summary
Constructors Constructor Description ConsoleOutHandler()
Create a ConsoleOutHandler for System.out.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Override StreamHandler.close to do a flush but not to close the output stream.void
publish(java.util.logging.LogRecord record)
Publish a LogRecord.-
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
-
-
-
Method Detail
-
publish
public void publish(java.util.logging.LogRecord record)
Publish a LogRecord.The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
- Overrides:
publish
in classjava.util.logging.StreamHandler
- Parameters:
record
- description of the log event
-
close
public void close()
Override StreamHandler.close to do a flush but not to close the output stream. That is, we do not close System.err.- Overrides:
close
in classjava.util.logging.StreamHandler
-
-