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.JULWrapper
A logger that delegates to a java.util.logging.Logger delegate. |
public static interface |
Modifier and Type | Field and Description |
---|---|
pack-priv static final RuntimePermission | |
private static final LoggingPermission | |
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. | Returns: Alogger suitable for the application usage.The name of the logger. name, Module The module on behalf of which the logger is created. module)Overrides jdk. logger suitable for use within the
given module .
|
public static LoggingProviderImpl. | |
public static void |
LOGGERFINDER_PERMISSION | back to summary |
---|---|
pack-priv static final RuntimePermission LOGGERFINDER_PERMISSION Hides jdk. |
LOGGING_CONTROL_PERMISSION | back to summary |
---|---|
private static final LoggingPermission LOGGING_CONTROL_PERMISSION |
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
the reference object with which to compare. obj)Overrides java. |
public PlatformLogger. | |
public String | getName()
Implements java. |
public PlatformLogger. | |
public int | |
public boolean | |
public boolean | isLoggable(PlatformLogger.
the level levelImplements sun. |
public boolean | isLoggable(System.
the log message level. levelImplements java. |
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 | log(System.
the log message level. level,the string message (or a key in the message catalog, if
this logger is a msg)localized logger );
can be null .Overrides default java. |
public void | |
public void | |
public void | log(System.
the log message level. level,the string message (or a key in the message catalog, if
this logger is a msg, Throwable localized logger );
can be null .a thrown)Throwable associated with the log message;
can be null .Overrides default java. |
public void | log(System.
one of the log message level identifiers. level,a supplier function that produces a message. msgSupplier, Throwable a thrown)Throwable associated with log message;
can be null .Overrides default java. |
public void | log(System.
one of the log message level identifiers. level,the string message format in format, Object... java. format, (or a key in the message
catalog, if this logger is a localized logger );
can be null .an optional list of parameters to the message (may be
none). params)Overrides default java. |
public void | log(System.
the log message level. level,a resource bundle to localize bundle, String msg ; can be
null .the string message (or a key in the message catalog,
if key, Throwable bundle is not null ); can be null .a thrown)Throwable associated with the log message;
can be null .Implements java. |
public void | log(System.
the log message level. level,a resource bundle to localize bundle, String format ; can be
null .the string message format in format, Object... java. format, (or a key in the message
catalog if bundle is not null ); can be null .an optional list of parameters to the message (may be
none). params)Implements java. |
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) |