net.sf.bloof.util.logging
Class ConsoleOutErrHandler

java.lang.Object
  |
  +--java.util.logging.Handler
        |
        +--net.sf.bloof.util.logging.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.6 2003/06/12 11:15:59 pekacki Exp $
Author:
Richard Cyganiak

Constructor Summary
ConsoleOutErrHandler()
          Constructor for ConsoleOutErrHandler.
 
Method Summary
 void close()
           
 void flush()
           
 void publish(java.util.logging.LogRecord aRecord)
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleOutErrHandler

public ConsoleOutErrHandler()
Constructor for ConsoleOutErrHandler.

Method Detail

close

public void close()
           throws java.lang.SecurityException
Specified by:
close in class java.util.logging.Handler
java.lang.SecurityException
See Also:
Handler.close( )

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler
See Also:
Handler.flush( )

publish

public void publish(java.util.logging.LogRecord aRecord)
Specified by:
publish in class java.util.logging.Handler
Parameters:
aRecord - a log record
See Also:
Handler.publish( LogRecord )


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.