jdk.internal.logger
package defines an internal provider
whose default naive implementation is replaced by the java.logging
module when the java.logging
module is present.
Default Implementation
The JDK default implementation of the System.LoggerFinder will attempt to
load an installed instance of the jdk.
defined in this package.
When the java.util.logging
package is present, this will usually
resolve to an instance of sun.
-
which provides an implementation of the Logger whose backend is a
java.
.
Configuration can thus be performed by direct access to the regular
java.util.logging
APIs,
using java.
and
java.
to access and configure the backend
Loggers.
If however java.util.logging
is not linked with the application, then
the default implementation will return a simple logger that will print out
all log messages of INFO level and above to the console (System.err
),
as implemented by the base jdk.
class.
Message Levels and Mapping to java.util.logging
The java.
class documentation describe how
System.Logger levels are mapped
to JUL levels when java.util.logging
is the backend.
jdk.internal.logger.DefaultLoggerFinder
, sun.util.logging.internal.LoggingProviderImpl
, java.lang.System.LoggerFinder
, java.lang.System.Logger
, sun.util.logging.PlatformLogger.Bridge
, sun.util.logging.internal
Modifier and Type | Class and Description |
---|---|
pack-priv abstract class | AbstractLoggerWrapper<
Type of the wrapped Logger: L extends System.Logger or
an extension of that interface.An implementation of |
public class | BootstrapLogger
The BootstrapLogger class handles all the logic needed by Lazy Loggers to delay the creation of System.Logger instances until the VM is booted. |
public class | DefaultLoggerFinder
Internal Service Provider Interface (SPI) that makes it possible to use
|
public class | LazyLoggers
This class is a factory for Lazy Loggers; only system loggers can be Lazy Loggers. |
public class | LocalizedLoggerWrapper<
Type of the wrapped Logger: L extends System.Logger or an
extension of the Logger interface.This implementation of |
public class | LoggerFinderLoader
Helper class used to load the |
public class | LoggerWrapper<
Type of the wrapped Logger: L extends System.Logger or an
extension of that interface.An implementation of |
public class | SimpleConsoleLogger
A simple console logger to emulate the behavior of JUL loggers when in the default configuration. |
public class | SurrogateLogger
A simple console logger used to emulate the behavior of JUL loggers when java.util.logging has no custom configuration. |