@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 void
config(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at config level.void
config(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at config level.void
debug(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at debug level.void
debug(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at debug level.void
error(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at error level.void
error(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at error level.void
info(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at info level.void
info(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at info level.void
trace(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at trace level.void
trace(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at trace level.void
warn(Throwable throwable, Supplier<String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at warning level.void
warn(Supplier<String> messageSupplier)
Log the message from the providedmessageSupplier
at warning level.
-
Method Details
-
error
Log the message from the providedmessageSupplier
at error level.Maps to
Level.SEVERE
in JUL. -
error
Log the providedThrowable
and message from the providedmessageSupplier
at error level.Maps to
Level.SEVERE
in JUL. -
warn
Log the message from the providedmessageSupplier
at warning level.Maps to
Level.WARNING
in JUL. -
warn
Log the providedThrowable
and message from the providedmessageSupplier
at warning level.Maps to
Level.WARNING
in JUL. -
info
Log the message from the providedmessageSupplier
at info level.Maps to
Level.INFO
in JUL. -
info
Log the providedThrowable
and message from the providedmessageSupplier
at info level.Maps to
Level.INFO
in JUL. -
config
Log the message from the providedmessageSupplier
at config level.Maps to
Level.CONFIG
in JUL. -
config
Log the providedThrowable
and message from the providedmessageSupplier
at config level.Maps to
Level.CONFIG
in JUL. -
debug
Log the message from the providedmessageSupplier
at debug level.Maps to
Level.FINE
in JUL. -
debug
Log the providedThrowable
and message from the providedmessageSupplier
at debug level.Maps to
Level.FINE
in JUL. -
trace
Log the message from the providedmessageSupplier
at trace level.Maps to
Level.FINER
in JUL. -
trace
Log the providedThrowable
and message from the providedmessageSupplier
at trace level.Maps to
Level.FINER
in JUL.
-