public class ConsoleHandler extends StreamHandler
Configuration: By default each ConsoleHandler is initialized to the Log level Level.INFO and will use the Formatter class java.util.logging.SimpleFormatter.
|Constructor and Description|
Create a ConsoleHandler for System.err.
|Modifier and Type||Method and Description|
Override StreamHandler.close to do a flush but not to close the output stream.
Publish a LogRecord.
flush, isLoggable, setEncoding, setOutputStream
getEncoding, getFilter, getFormatter, getLevel, reportError, setFilter, setFormatter, setLevel
public void close()
public void publish(LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.