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.
Implementation Requirements:
When logging is enabled for the given level, the default implementation for this method callsthis.log(level, (ResourceBundle)null, msgSupplier.get(), (Object[])null);
Parameters:
level - the log message level.
msgSupplier - a supplier function that produces a message.
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.
Implementation Requirements:
When logging is enabled for the given level, the default implementation for this method callsthis.log(level, (ResourceBundle)null, obj.toString(), (Object[])null);
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.
Implementation Requirements:
When logging is enabled for the given level, the default implementation for this method callsthis.log(level, (ResourceBundle)null, msgSupplier.get(), thrown);
Parameters:
level - one of the log message level identifiers.
msgSupplier - a supplier function that produces a message.
thrown - aThrowable associated with log message; can benull.
Logs a localized message associated with a given throwable. If the given resource bundle is non-null, themsg string is localized using the given resource bundle. Otherwise themsg string is not localized.
Parameters:
level - the log message level.
bundle - a resource bundle to localizemsg; can benull.
msg - the string message (or a key in the message catalog, ifbundle is notnull); can benull.
thrown - aThrowable associated with the log message; can benull.
Logs a message with resource bundle and an optional list of parameters. If the given resource bundle is non-null, theformat string is localized using the given resource bundle. Otherwise theformat string is not localized.
Parameters:
level - the log message level.
bundle - a resource bundle to localizeformat; can benull.
format - the string message format inMessageFormat format, (or a key in the message catalog ifbundle is notnull); can benull.
params - an optional list of parameters to the message (may be none).