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 |
Modifier and Type | Method and Description |
---|---|
public final ResourceBundle | |
public final boolean | isLoggable(System.
the log message level. levelOverrides jdk. Implements java. Checks if a message of the given level would be logged by this logger. |
public final 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 jdk. Overrides default java. Logs a message. |
public final 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 jdk. Overrides default java. Logs a message associated with a given throwable. |
public final 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 jdk. Overrides default java. Logs a message with an optional list of parameters. |
public final void | log(System.
the log message level. level,the object to log. obj)Overrides jdk. Overrides default java. Logs a message produced from the given object. |
public final void | log(System.
the log message level. level,a supplier function that produces a message. msgSupplier)Overrides jdk. Overrides default java. Logs a lazily supplied message. |
public final 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 jdk. Overrides default java. Logs a lazily supplied message associated with a given throwable. |
public final 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)Overrides jdk. Implements java. Logs a message with resource bundle and an optional list of parameters. |
public final 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 .Overrides jdk. Implements java. Logs a localized message associated with a given throwable. |
public final void | log(PlatformLogger.
Overrides jdk. Implements sun.
|
public final void | log(PlatformLogger.
Overrides jdk. Implements sun.
|
public final void | log(PlatformLogger.
Overrides jdk. Implements sun.
|
public final void | logp(PlatformLogger.
Overrides jdk. Implements sun.
|
public final void | logp(PlatformLogger.
Overrides jdk. Implements sun.
|
public final void | logp(PlatformLogger.
Overrides jdk. Implements sun.
|
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.
|