This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.util.logging
class ConsoleHandler

java.lang.Object extended by java.util.logging.Handler extended by java.util.logging.StreamHandler extended by java.util.logging.ConsoleHandler

Most common way to construct:

ConsoleHandler logHandler = new ConsoleHandler();

Based on 30 examples


public class ConsoleHandler
extends StreamHandler

This Handler publishes log records to System.err. By default the SimpleFormatter is used to generate brief summaries.

Configuration: By default each ConsoleHandler is initialized using the following LogManager configuration properties. If properties are not defined (or have invalid values) then the specified default values are used.


Constructor Summary

          Create a ConsoleHandler for System.err.
 
Method Summary
 void

          Override StreamHandler.close to do a flush but not to close the output stream.
 void

          Publish a LogRecord.
 
Methods inherited from class java.util.logging.StreamHandler
close, flush, isLoggable, publish, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
close, flush, getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, publish, 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

ConsoleHandler

public ConsoleHandler()
Create a ConsoleHandler for System.err.

The ConsoleHandler is configured based on LogManager properties (or their default values).

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 StreamHandler

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.

Overrides:
publish in class StreamHandler
Parameters:
record - description of the log event. A null record is silently ignored and is not published


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.