java.util.logging
as backend when the sun.util.logging.internal.LoggingProviderImpl
is present.
The JDK default implementation of the LoggerFinder
will
attempt to locate and load an installed
implementation of the DefaultLoggerFinder
. If java.util.logging
is present, this will usually resolve to an instance of sun.
.
Otherwise, if no concrete service provider is declared for
DefaultLoggerFinder
, the default implementation provided by this class
will be used.
When the sun.
is not present then the
default implementation provided by this class is to use a simple logger
that will log messages whose level is INFO and above to the console.
These simple loggers are not configurable.
When configuration is needed, an application should either link with
java.util.logging
- and use the java.util.logging
for
configuration, or link with another implementation
of the LoggerFinder
that provides the necessary configuration.
API Note
Programmers are not expected to call this class directly.
Instead they should rely on the static methods defined by java.
or sun.
.
java.lang.System.LoggerFinder
, jdk.internal.logger
, sun.util.logging.internal
Modifier and Type | Class and Description |
---|---|
pack-priv static class |
Modifier and Type | Field and Description |
---|---|
pack-priv static final RuntimePermission |
Access | Constructor and Description |
---|---|
protected | |
private |
Modifier and Type | Method and Description |
---|---|
private static Void | |
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)Returns a |
public final System. | getLocalizedLogger(String
the name of the logger. name, ResourceBundle a resource bundle; can be bundle, Module null .the module for which the logger is being requested. module)Overrides java. Returns a localizable instance of |
public final System. | getLogger(String
the name of the logger. name, Module the module for which the logger is being requested. module)Implements abstract java. Returns an instance of |
public static boolean |
LOGGERFINDER_PERMISSION | back to summary |
---|---|
pack-priv static final RuntimePermission LOGGERFINDER_PERMISSION Hides java. |
DefaultLoggerFinder | back to summary |
---|---|
protected DefaultLoggerFinder() Creates a new instance of DefaultLoggerFinder.
|
DefaultLoggerFinder | back to summary |
---|---|
private DefaultLoggerFinder(Void unused) |
checkPermission | back to summary |
---|---|
private static Void checkPermission() |
demandLoggerFor | back to summary |
---|---|
protected System. Returns a Implementation Specification The default implementation for this method is to return a simple logger that will print all messages of INFO level and above to the console. That simple logger is not configurable. |
getLocalizedLogger | back to summary |
---|---|
public final System. Overrides java. Doc from java. Returns a localizable instance of |
getLogger | back to summary |
---|---|
public final System. Implements abstract java. Doc from java. Returns an instance of |
isSystem | back to summary |
---|---|
public static boolean isSystem(Module m)
|