Logger or an
extension of the Logger interface.
Logger redirects all logging method
calls to calls to log(Level, String, ResourceBundle, ...)
methods, passing the Logger's ResourceBundle as parameter.
So for instance a call to log(Level.INFO, msg) will be redirected
to a call to this.log(Level.INFO, this.bundle, msg, (Object[]) null) .
Note that methods that take a Supplier<String>
or an Object are not redirected. It is assumed that a string returned
by a Supplier<String> is already localized, or cannot be localized.
| Modifier and Type | Field and Description |
|---|---|
| private final ResourceBundle |
| Access | Constructor and Description |
|---|---|
| public |
| bundle | back to summary |
|---|---|
| private final ResourceBundle bundle | |
| LocalizedLoggerWrapper | back to summary |
|---|---|
| public LocalizedLoggerWrapper(L wrapped, ResourceBundle bundle) | |
| getBundle | back to summary |
|---|---|
| public final ResourceBundle getBundle() | |
| isLoggable | back to summary |
|---|---|
| public final boolean isLoggable(System. Overrides jdk. Implements java. Doc from java. Checks if a message of the given level would be logged by this logger.
| |
| log | back to summary |
|---|---|
| public final void log(System. Overrides jdk. Overrides default java. Doc from java. Logs a message.
| |
| log | back to summary |
|---|---|
| public final void log(System. Overrides jdk. Overrides default java. Doc from java. Logs a message associated with a given throwable.
| |
| log | back to summary |
|---|---|
| public final void log(System. Overrides jdk. Overrides default java. Doc from java. Logs a message with an optional list of parameters.
| |
| log | back to summary |
|---|---|
| public final void log(System. Overrides jdk. 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 final void log(System. Overrides jdk. 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 final void log(System. Overrides jdk. 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 final void log(System. Overrides jdk. 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 final void log(System. Overrides jdk. 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 final void log(PlatformLogger. Overrides jdk. Implements sun.
| |
| log | back to summary |
|---|---|
| public final void log(PlatformLogger. Overrides jdk. Implements sun.
| |
| log | back to summary |
|---|---|
| public final void log(PlatformLogger. Overrides jdk. Implements sun.
| |
| logp | back to summary |
|---|---|
| public final void logp(PlatformLogger. Overrides jdk. Implements sun.
| |
| logp | back to summary |
|---|---|
| public final void logp(PlatformLogger. Overrides jdk. Implements sun.
| |
| logp | back to summary |
|---|---|
| public final void logp(PlatformLogger. Overrides jdk. Implements sun.
| |