LoggingProviderImpl is the JDK internal implementation of the
jdk.internal.logger.DefaultLoggerFinder which is used by
the default implementation of the Logger
when no LoggerFinder is found
and java.util.logging is present.
When java.util.logging is present, the LoggingProviderImpl
is installed as
an internal service provider, making it possible to use java.util.logging
as the backend for loggers returned by the default LoggerFinder implementation.
This implementation of DefaultLoggerFinder returns instances of
java. which
delegate to a wrapped instance of java..
Loggers returned by this class can therefore be configured by accessing
their wrapped implementation through the regular java.util.logging
APIs - such as java.
and java..
API Note
Programmers are not expected to call this class directly.
Instead they should rely on the static methods defined by
java..
To replace this default
java.util.logging backend, an application is expected to install
its own java..
java.lang.System.Logger , java.lang.System.LoggerFinder , sun.util.logging.PlatformLogger.Bridge , java.lang.System , jdk.internal.logger
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | LoggingProviderImpl.
A logger that delegates to a java.util.logging.Logger delegate. |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile LoggingProviderImpl. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Logger | Returns: a Logger suitable for use in the given module.the logger name. name, Module the module for which the logger should be created. module)Creates a java.util.logging.Logger for the given module. |
| protected System. | demandLoggerFor(String name, Module module)
Overrides jdk. Returns a |
| public static LoggingProviderImpl. | |
| public static void |
| logManagerAccess | back to summary |
|---|---|
| private static volatile LoggingProviderImpl. | |
| LoggingProviderImpl | back to summary |
|---|---|
| public LoggingProviderImpl() Creates a new instance of LoggingProviderImpl. | |
| demandJULLoggerFor | back to summary |
|---|---|
| private static Logger demandJULLoggerFor(final String name, Module module) Creates a java.util.logging.Logger for the given module. | |
| demandLoggerFor | back to summary |
|---|---|
| protected System. Overrides jdk. Doc from jdk. Returns a API Note The logger returned by this method can be configured through its corresponding java.util.logging.Logger backend.
| |
| getLogManagerAccess | back to summary |
|---|---|
| public static LoggingProviderImpl. | |
| setLogManagerAccess | back to summary |
|---|---|
| public static void setLogManagerAccess(LoggingProviderImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Logger | |
| private static final Level[] | |
| private static final Level[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public PlatformLogger. | |
| public String | getName()
Implements java. Returns the name of this logger. |
| public PlatformLogger. | |
| public int | |
| public boolean | |
| public boolean | isLoggable(PlatformLogger.
Implements sun. Returns true if a message of the given level would actually be logged by this logger. |
| public boolean | isLoggable(System.
Implements java. Checks if a message of the given level would be logged by this logger. |
| public void | log(PlatformLogger.
Implements sun.
|
| public void | log(PlatformLogger.
Implements sun.
|
| public void | |
| public void | log(PlatformLogger.
Implements sun.
|
| public void | log(PlatformLogger.
Implements sun.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | log(System.
Implements java. Logs a localized message associated with a given throwable. |
| public void | log(System.
Implements java. Logs a message with resource bundle and an optional list of parameters. |
| public void | logp(PlatformLogger.
Implements sun.
|
| public void | logp(PlatformLogger.
Implements sun.
|
| public void | logp(PlatformLogger.
Implements sun.
|
| public void | logp(PlatformLogger.
Implements sun.
|
| public void | logp(PlatformLogger.
Implements sun.
|
| public void | logrb(PlatformLogger.
Implements sun.
|
| public void | logrb(PlatformLogger.
Implements sun.
|
| public void | logrb(PlatformLogger.
Implements sun.
|
| public void | logrb(PlatformLogger.
Implements sun.
|
| pack-priv static LoggingProviderImpl. | |
| public void | |
| pack-priv static Level | |
| pack-priv static Level |
| julLogger | back to summary |
|---|---|
| private final Logger julLogger | |
| platform2JulLevelMapping | back to summary |
|---|---|
| private static final Level[] platform2JulLevelMapping | |
| spi2JulLevelMapping | back to summary |
|---|---|
| private static final Level[] spi2JulLevelMapping | |
| JULWrapper | back to summary |
|---|---|
| private JULWrapper(Logger logger) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getLoggerConfiguration | back to summary |
|---|---|
| public PlatformLogger. Overrides default sun.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Doc from java. Returns the name of this logger.
| |
| getPlatformLevel | back to summary |
|---|---|
| public PlatformLogger. Implements abstract sun.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Implements sun.
| |
| isLoggable | back to summary |
|---|---|
| public boolean isLoggable(PlatformLogger. Implements sun. Doc from sun. Returns true if a message of the given level would actually be logged by this logger.
| |
| isLoggable | back to summary |
|---|---|
| public boolean isLoggable(System. Implements java. Doc from java. Checks if a message of the given level would be logged by this logger.
| |
| log | back to summary |
|---|---|
| public void log(PlatformLogger. Implements sun.
| |
| log | back to summary |
|---|---|
| public void log(PlatformLogger. Implements sun.
| |
| log | back to summary |
|---|---|
| public void log(PlatformLogger. Implements sun.
| |
| log | back to summary |
|---|---|
| public void log(PlatformLogger. Implements sun.
| |
| log | back to summary |
|---|---|
| public void log(PlatformLogger. Implements sun.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a message.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a lazily supplied message. If the logger is currently enabled for the given log message level then a message is logged that is the result produced by the given supplier function. Otherwise, the supplier is not operated on.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a message produced from the given object. If the logger is currently enabled for the given log message level then a message is logged that, by default, is the result produced from calling toString on the given object. Otherwise, the object is not operated on.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a message associated with a given throwable.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a lazily supplied message associated with a given throwable. If the logger is currently enabled for the given log message level then a message is logged that is the result produced by the given supplier function. Otherwise, the supplier is not operated on.
| |
| log | back to summary |
|---|---|
| public void log(System. Overrides default java. Doc from java. Logs a message with an optional list of parameters.
| |
| log | back to summary |
|---|---|
| public void log(System. Implements java. Doc from java. Logs a localized message associated with a given throwable.
If the given resource bundle is non-
| |
| log | back to summary |
|---|---|
| public void log(System. Implements java. Doc from java. Logs a message with resource bundle and an optional list of
parameters.
If the given resource bundle is non-
| |
| logp | back to summary |
|---|---|
| public void logp(PlatformLogger. Implements sun.
| |
| logp | back to summary |
|---|---|
| public void logp(PlatformLogger. Implements sun.
| |
| logp | back to summary |
|---|---|
| public void logp(PlatformLogger. Implements sun.
| |
| logp | back to summary |
|---|---|
| public void logp(PlatformLogger. Implements sun.
| |
| logp | back to summary |
|---|---|
| public void logp(PlatformLogger. Implements sun.
| |
| logrb | back to summary |
|---|---|
| public void logrb(PlatformLogger. Implements sun.
| |
| logrb | back to summary |
|---|---|
| public void logrb(PlatformLogger. Implements sun.
| |
| logrb | back to summary |
|---|---|
| public void logrb(PlatformLogger. Implements sun.
| |
| logrb | back to summary |
|---|---|
| public void logrb(PlatformLogger. Implements sun.
| |
| of | back to summary |
|---|---|
| pack-priv static LoggingProviderImpl. | |
| setPlatformLevel | back to summary |
|---|---|
| public void setPlatformLevel(PlatformLogger. Implements abstract sun.
| |
| toJUL | back to summary |
|---|---|
| pack-priv static Level toJUL(System. | |
| toJUL | back to summary |
|---|---|
| pack-priv static Level toJUL(PlatformLogger. | |
| Modifier and Type | Method and Description |
|---|---|
| public Logger |
| demandLoggerFor | back to summary |
|---|---|
| public Logger demandLoggerFor(LogManager manager, String name, Module module) | |