Package net.sf.statcvs.util
Class ConsoleOutErrHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- net.sf.statcvs.util.ConsoleOutErrHandler
-
public class ConsoleOutErrHandler extends java.util.logging.Handler
Customized console logging handler.The ConsoleOutErrHandler writes log messages of severity WARNING and higher to the System.err stream, and all other log messages to System.out. It uses a
LogFormatter
to format the records.- Version:
- $Id: ConsoleOutErrHandler.java,v 1.3 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
-
Constructor Summary
Constructors Constructor Description ConsoleOutErrHandler()
Constructor for ConsoleOutErrHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
publish(java.util.logging.LogRecord record)
-
-
-
Method Detail
-
publish
public void publish(java.util.logging.LogRecord record)
- Specified by:
publish
in classjava.util.logging.Handler
- Parameters:
record
- a log record- See Also:
Handler.publish(LogRecord)
-
flush
public void flush()
- Specified by:
flush
in classjava.util.logging.Handler
- See Also:
Handler.flush()
-
close
public void close() throws java.lang.SecurityException
- Specified by:
close
in classjava.util.logging.Handler
- Throws:
java.lang.SecurityException
- See Also:
Handler.close()
-
-