public interface Logger
Logger
.
The methods correspond to Level
in JUL:
error
maps to Level.SEVERE
warn
maps to Level.WARNING
info
maps to Level.INFO
config
maps to Level.CONFIG
debug
maps to Level.FINE
trace
maps to Level.FINER
Modifier and Type | Method and Description |
---|---|
void |
config(Supplier<String> message)
Log the
message at config level. |
void |
config(Throwable throwable,
Supplier<String> message)
Log the
message and throwable at config level. |
void |
debug(Supplier<String> message)
Log the
message at debug level. |
void |
debug(Throwable throwable,
Supplier<String> message)
Log
message and throwable at debug level. |
void |
error(Supplier<String> message)
Log the
message at error level. |
void |
error(Throwable throwable,
Supplier<String> message)
Log the
message and throwable at error level. |
void |
info(Supplier<String> message)
Log the
message at info level. |
void |
info(Throwable throwable,
Supplier<String> message)
Log the
message and throwable at info level. |
void |
trace(Supplier<String> message)
Log the
message at trace level. |
void |
trace(Throwable throwable,
Supplier<String> message)
Log the
message and throwable at trace level. |
void |
warn(Supplier<String> message)
Log the
message at warning level. |
void |
warn(Throwable throwable,
Supplier<String> message)
Log the
message and throwable at warning level. |
void error(Supplier<String> message)
message
at error level.message
- The message to log.void error(Throwable throwable, Supplier<String> message)
message
and throwable
at error level.throwable
- The throwable to log.message
- The message to log.void warn(Supplier<String> message)
message
at warning level.message
- The message to log.void warn(Throwable throwable, Supplier<String> message)
message
and throwable
at warning level.throwable
- The throwable to log.message
- The message to log.void info(Supplier<String> message)
message
at info level.message
- The message to log.void info(Throwable throwable, Supplier<String> message)
message
and throwable
at info level.throwable
- The throwable to log.message
- The message to log.void config(Supplier<String> message)
message
at config level.message
- The message to log.void config(Throwable throwable, Supplier<String> message)
message
and throwable
at config level.throwable
- The throwable to log.message
- The message to log.void debug(Supplier<String> message)
message
at debug level.message
- The message to log.void debug(Throwable throwable, Supplier<String> message)
message
and throwable
at debug level.throwable
- The throwable to log.message
- The message to log.void trace(Supplier<String> message)
message
at trace level.message
- The message to log.Copyright © 2020. All rights reserved.