net.sf.bloof.util.logging
Class ConsoleOutHandler

java.lang.Object
  |
  +--java.util.logging.Handler
        |
        +--java.util.logging.StreamHandler
              |
              +--net.sf.bloof.util.logging.ConsoleOutHandler

public class ConsoleOutHandler
extends java.util.logging.StreamHandler

A simplified copy of java.util.logging.ConsoleHandler. It writes to System.out instead of System.err and uses the LogFormatter to format

Version:
$Id: ConsoleOutHandler.java,v 1.6 2003/06/12 11:16:00 pekacki Exp $
Author:
Richard Cyganiak

Constructor Summary
ConsoleOutHandler()
          Create a ConsoleOutHandler for System.out.
 
Method Summary
 void close()
          Override StreamHandler.close to do a flush but not to close the output stream.
 void publish(java.util.logging.LogRecord aRecord)
          Publish a LogRecord.
 
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleOutHandler

public ConsoleOutHandler()
Create a ConsoleOutHandler for System.out.

Method Detail

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 class java.util.logging.StreamHandler

publish

public void publish(java.util.logging.LogRecord aRecord)
Publish a LogRecord.

The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

Overrides:
publish in class java.util.logging.StreamHandler
Parameters:
aRecord - description of the log event


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.