net.sf.statcvs.util

Class ConsoleOutHandler


public class ConsoleOutHandler
extends 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.3 2008/04/02 11:22:15 benoitx 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(LogRecord record)
Publish a LogRecord.

Constructor Details

ConsoleOutHandler

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

Method Details

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.

publish

public void publish(LogRecord record)
Publish a LogRecord.

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

Parameters:
record - description of the log event