Interface Logger
@API(status=INTERNAL,
since="1.0")
public interface Logger
The
Logger API serves as a simple logging facade for
java.util.logging (JUL).- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description voidconfig(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat config level.voidconfig(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat config level.voiddebug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat debug level.voiddebug(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat debug level.voiderror(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat error level.voiderror(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat error level.voidinfo(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat info level.voidinfo(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat info level.voidtrace(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat trace level.voidtrace(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat trace level.voidwarn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat warning level.voidwarn(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat warning level.
-
Method Details
-
error
void error(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat error level.Maps to
Level.SEVEREin JUL. -
error
void error(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat error level.Maps to
Level.SEVEREin JUL. -
warn
void warn(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat warning level.Maps to
Level.WARNINGin JUL. -
warn
void warn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat warning level.Maps to
Level.WARNINGin JUL. -
info
void info(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat info level.Maps to
Level.INFOin JUL. -
info
void info(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat info level.Maps to
Level.INFOin JUL. -
config
void config(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat config level.Maps to
Level.CONFIGin JUL. -
config
void config(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat config level.Maps to
Level.CONFIGin JUL. -
debug
void debug(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat debug level.Maps to
Level.FINEin JUL. -
debug
void debug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat debug level.Maps to
Level.FINEin JUL. -
trace
void trace(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat trace level.Maps to
Level.FINERin JUL. -
trace
void trace(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat trace level.Maps to
Level.FINERin JUL.
-