| Package | Description |
|---|---|
| java.util.logging |
| Modifier and Type | Field and Description |
|---|---|
static Logger |
Logger.global
Deprecated.
Initialization of this field is prone to deadlocks.
The field must be initialized by the Logger class initialization
which may cause deadlocks with the LogManager class initialization.
In such cases two class initialization wait for each other to complete.
The preferred way to get the global logger object is via the call
Logger.getGlobal().
For compatibility with old JDK versions where the
Logger.getGlobal() is not available use the call
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)
or Logger.getLogger("global"). |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
Logger.getAnonymousLogger()
Create an anonymous Logger.
|
static Logger |
Logger.getAnonymousLogger(String resourceBundleName)
Create an anonymous Logger.
|
static Logger |
Logger.getGlobal()
Return global logger object with the name Logger.GLOBAL_LOGGER_NAME.
|
static Logger |
Logger.getLogger(String name)
Find or create a logger for a named subsystem.
|
static Logger |
Logger.getLogger(String name,
String resourceBundleName)
Find or create a logger for a named subsystem.
|
Logger |
Logger.getParent()
Return the parent for this Logger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Logger.setParent(Logger parent)
Set the parent for this Logger.
|
Copyright © 2015 API Design. All Rights Reserved.