1 /*
   2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * <b>[JDK INTERNAL]</b>
  28  * The {@code jdk.internal.logger} package defines an internal provider
  29  * whose default naive implementation is replaced by the {@code java.logging}
  30  * module when the {@code java.logging} module is present.
  31  * <p>
  32  * <b>Default Implementation</b>
  33  * <p>
  34  * The JDK default implementation of the System.LoggerFinder will attempt to
  35  * load an installed instance of the {@link jdk.internal.logger.DefaultLoggerFinder}
  36  * defined in this package.
  37  * When the {@code java.util.logging} package is present, this will usually
  38  * resolve to an instance of {@link sun.util.logging.internal.LoggingProviderImpl} -
  39  * which provides an implementation of the Logger whose backend is a
  40  * {@link java.util.logging.Logger java.util.logging.Logger}.
  41  * Configuration can thus be performed by direct access to the regular
  42  * {@code java.util.logging} APIs,
  43  * using {@link java.util.logging.Logger java.util.logging.Logger} and
  44  * {@link java.util.logging.LogManager} to access and configure the backend
  45  * Loggers.
  46  * <br>
  47  * If however {@code java.util.logging} is not linked with the application, then
  48  * the default implementation will return a simple logger that will print out
  49  * all log messages of INFO level and above to the console ({@code System.err}),
  50  * as implemented by the base {@link jdk.internal.logger.DefaultLoggerFinder} class.
  51  * <p>
  52  * <b>Message Levels and Mapping to java.util.logging</b>
  53  * <p>
  54  * The {@link java.lang.System.LoggerFinder} class documentation describe how
  55  * {@linkplain java.lang.System.Logger.Level System.Logger levels} are mapped
  56  * to {@linkplain java.util.logging.Level JUL levels} when {@code
  57  * java.util.logging} is the backend.
  58  *
  59  * @see jdk.internal.logger.DefaultLoggerFinder
  60  * @see sun.util.logging.internal.LoggingProviderImpl
  61  * @see java.lang.System.LoggerFinder
  62  * @see java.lang.System.Logger
  63  * @see sun.util.logging.PlatformLogger.Bridge
  64  * @see sun.util.logging.internal
  65  *
  66  * @since 1.9
  67  */
  68 package jdk.internal.logger;