Path: blob/master/src/java.base/share/classes/jdk/internal/logger/package-info.java
41159 views
/*1* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/**26* <b>[JDK INTERNAL]</b>27* The {@code jdk.internal.logger} package defines an internal provider28* whose default naive implementation is replaced by the {@code java.logging}29* module when the {@code java.logging} module is present.30* <p>31* <b>Default Implementation</b>32* <p>33* The JDK default implementation of the System.LoggerFinder will attempt to34* load an installed instance of the {@link jdk.internal.logger.DefaultLoggerFinder}35* defined in this package.36* When the {@code java.util.logging} package is present, this will usually37* resolve to an instance of {@link sun.util.logging.internal.LoggingProviderImpl} -38* which provides an implementation of the Logger whose backend is a39* {@link java.util.logging.Logger java.util.logging.Logger}.40* Configuration can thus be performed by direct access to the regular41* {@code java.util.logging} APIs,42* using {@link java.util.logging.Logger java.util.logging.Logger} and43* {@link java.util.logging.LogManager} to access and configure the backend44* Loggers.45* <br>46* If however {@code java.util.logging} is not linked with the application, then47* the default implementation will return a simple logger that will print out48* all log messages of INFO level and above to the console ({@code System.err}),49* as implemented by the base {@link jdk.internal.logger.DefaultLoggerFinder} class.50* <p>51* <b>Message Levels and Mapping to java.util.logging</b>52* <p>53* The {@link java.lang.System.LoggerFinder} class documentation describe how54* {@linkplain java.lang.System.Logger.Level System.Logger levels} are mapped55* to {@linkplain java.util.logging.Level JUL levels} when {@code56* java.util.logging} is the backend.57*58* @see jdk.internal.logger.DefaultLoggerFinder59* @see sun.util.logging.internal.LoggingProviderImpl60* @see java.lang.System.LoggerFinder61* @see java.lang.System.Logger62* @see sun.util.logging.PlatformLogger.Bridge63* @see sun.util.logging.internal64*65* @since 966*/67package jdk.internal.logger;686970