2362N/A * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This <tt>Handler</tt> publishes log records to <tt>System.err</tt>. 0N/A * By default the <tt>SimpleFormatter</tt> is used to generate brief summaries. 0N/A * <b>Configuration:</b> 0N/A * By default each <tt>ConsoleHandler</tt> is initialized using the following 0N/A * <tt>LogManager</tt> configuration properties. If properties are not defined 0N/A * (or have invalid values) then the specified default values are used. 0N/A * <li> java.util.logging.ConsoleHandler.level 0N/A * specifies the default level for the <tt>Handler</tt> 0N/A * (defaults to <tt>Level.INFO</tt>). 0N/A * <li> java.util.logging.ConsoleHandler.filter 0N/A * specifies the name of a <tt>Filter</tt> class to use 0N/A * (defaults to no <tt>Filter</tt>). 0N/A * <li> java.util.logging.ConsoleHandler.formatter 0N/A * specifies the name of a <tt>Formatter</tt> class to use 0N/A * (defaults to <tt>java.util.logging.SimpleFormatter</tt>). 0N/A * <li> java.util.logging.ConsoleHandler.encoding 0N/A * the name of the character set encoding to use (defaults to 0N/A * the default platform encoding). 0N/A // Private method to configure a ConsoleHandler from LogManager 0N/A // properties and/or default values as specified in the class 0N/A // doing a setEncoding with null should always work. 0N/A * Create a <tt>ConsoleHandler</tt> for <tt>System.err</tt>. 0N/A * The <tt>ConsoleHandler</tt> is configured based on 0N/A * <tt>LogManager</tt> properties (or their default values). 0N/A * Publish a <tt>LogRecord</tt>. 0N/A * The logging request was made initially to a <tt>Logger</tt> object, 0N/A * which initialized the <tt>LogRecord</tt> and forwarded it here. 0N/A * @param record description of the log event. A null record is 0N/A * silently ignored and is not published 0N/A * Override <tt>StreamHandler.close</tt> to do a flush but not 0N/A * to close the output stream. That is, we do <b>not</b> 0N/A * close <tt>System.err</tt>.