java.lang.System.Logger#getLogger(String)
PlatformLogger implements System.Logger as to facilitiate logging of
calling class and method.
Note : JDK internal loggers know to skip any calls from System.Logger
classes when looking for the calling class / method.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PlatformLogger.
PlatformLogger logging levels. |
| Modifier and Type | Field and Description |
|---|---|
| private final System. | |
| private static final Map | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static synchronized PlatformLogger | |
| public String | Returns: the name of the platform logger.Implements java. Gets the name for this platform logger. |
| private System. | |
| public void | |
| public void | |
| public void | |
| public boolean | isLoggable(System.
the log message level. levelImplements java. Checks if a message of the given level would be logged by this logger. |
| public boolean | Returns: whether a message of that level would be loggedthe level levelReturns true if a message of the given level would actually be logged by this logger. |
| 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. Logs a message with resource bundle and an optional list of parameters. |
| 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 msg, Throwable bundle is not null); can be null.a thrown)Throwable associated with the log message;
can be null.Implements java. Logs a localized message associated with a given throwable. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| loggerProxy | back to summary |
|---|---|
| private final System. | |
| loggers | back to summary |
|---|---|
| private static final Map<String, WeakReference<PlatformLogger>> loggers | |
| loggingEnabled | back to summary |
|---|---|
| private boolean loggingEnabled | |
| PlatformLogger | back to summary |
|---|---|
| protected PlatformLogger(System. | |
| disableLogging | back to summary |
|---|---|
| public void disableLogging() | |
| enableLogging | back to summary |
|---|---|
| public void enableLogging() | |
| fine | back to summary |
|---|---|
| public void fine(String msg) Logs a FINE message.
| |
| fine | back to summary |
|---|---|
| public void fine(String msg, Throwable t) | |
| fine | back to summary |
|---|---|
| public void fine(String msg, Object... params) | |
| finer | back to summary |
|---|---|
| public void finer(String msg) Logs a FINER message.
| |
| finer | back to summary |
|---|---|
| public void finer(String msg, Throwable t) | |
| finer | back to summary |
|---|---|
| public void finer(String msg, Object... params) | |
| finest | back to summary |
|---|---|
| public void finest(String msg) Logs a FINEST message.
| |
| finest | back to summary |
|---|---|
| public void finest(String msg, Throwable t) | |
| finest | back to summary |
|---|---|
| public void finest(String msg, Object... params) | |
| getLogger | back to summary |
|---|---|
| public static synchronized PlatformLogger getLogger(String name) Returns a PlatformLogger of a given name.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Gets the name for this platform logger. | |
| getSystemLoggerLevel | back to summary |
|---|---|
| private System. | |
| info | back to summary |
|---|---|
| public void info(String msg) Logs an INFO message.
| |
| info | back to summary |
|---|---|
| public void info(String msg, Throwable t) | |
| info | back to summary |
|---|---|
| public void info(String msg, Object... params) | |
| 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. | |
| isLoggable | back to summary |
|---|---|
| public boolean isLoggable(PlatformLogger. Returns true if a message of the given level would actually be logged by this logger.
| |
| 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-
| |
| 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-
| |
| severe | back to summary |
|---|---|
| public void severe(String msg) Logs a SEVERE message.
| |
| severe | back to summary |
|---|---|
| public void severe(String msg, Throwable t) | |
| severe | back to summary |
|---|---|
| public void severe(String msg, Object... params) | |
| warning | back to summary |
|---|---|
| public void warning(String msg) Logs a WARNING message.
| |
| warning | back to summary |
|---|---|
| public void warning(String msg, Throwable t) | |
| warning | back to summary |
|---|---|
| public void warning(String msg, Object... params) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| public static final PlatformLogger. | |
| pack-priv final System. | |
| public static final PlatformLogger. |
| Modifier and Type | Method and Description |
|---|---|
| public static PlatformLogger. | |
| public static PlatformLogger. |
| ALL | back to summary |
|---|---|
| public static final PlatformLogger. | |
| FINE | back to summary |
|---|---|
| public static final PlatformLogger. | |
| FINER | back to summary |
|---|---|
| public static final PlatformLogger. | |
| FINEST | back to summary |
|---|---|
| public static final PlatformLogger. | |
| INFO | back to summary |
|---|---|
| public static final PlatformLogger. | |
| OFF | back to summary |
|---|---|
| public static final PlatformLogger. | |
| SEVERE | back to summary |
|---|---|
| public static final PlatformLogger. | |
| systemLevel | back to summary |
|---|---|
| pack-priv final System. | |
| WARNING | back to summary |
|---|---|
| public static final PlatformLogger. | |
| Level | back to summary |
|---|---|
| private Level(System. | |
| valueOf | back to summary |
|---|---|
| public static PlatformLogger. | |
| values | back to summary |
|---|---|
| public static PlatformLogger. | |