public final class Logger extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
debug(Supplier<String> msg) |
Checks if debug is enabled and if so logs the supplied message
|
void |
debug(Supplier<String> msg,
Throwable throwable) |
Checks if debug is enabled and if so logs the supplied message and exception
|
void |
error(Supplier<String> msg) |
Checks if error is enabled and if so logs the supplied message
|
void |
error(Supplier<String> msg,
Throwable throwable) |
Checks if error is enabled and if so logs the supplied message and exception
|
void |
info(Supplier<String> msg) |
Checks if info is enabled and if so logs the supplied message
|
void |
info(Supplier<String> msg,
Throwable throwable) |
Checks if info is enabled and if so logs the supplied message and exception
|
boolean |
isLoggingLevelEnabled(String logLevel) |
Determines if the log-level passed is enabled
|
static Logger |
loggerFor(Class<?> clz) |
Static factory to get a logger instance for a given class
|
void |
trace(Supplier<String> msg) |
Checks if trace is enabled and if so logs the supplied message
|
void |
trace(Supplier<String> msg,
Throwable throwable) |
Checks if trace is enabled and if so logs the supplied message and exception
|
void |
warn(Supplier<String> msg) |
Checks if warn is enabled and if so logs the supplied message
|
void |
warn(Supplier<String> msg,
Throwable throwable) |
Checks if warn is enabled and if so logs the supplied message and exception
|
public void info(Supplier<String> msg)
msg
- - supplier for the log messagepublic void info(Supplier<String> msg, Throwable throwable)
msg
- - supplier for the log messagethrowable
- - a throwable to logpublic void error(Supplier<String> msg)
msg
- - supplier for the log messagepublic void error(Supplier<String> msg, Throwable throwable)
msg
- - supplier for the log messagethrowable
- - a throwable to logpublic void debug(Supplier<String> msg)
msg
- - supplier for the log messagepublic void debug(Supplier<String> msg, Throwable throwable)
msg
- - supplier for the log messagethrowable
- - a throwable to logpublic void warn(Supplier<String> msg)
msg
- - supplier for the log messagepublic void warn(Supplier<String> msg, Throwable throwable)
msg
- - supplier for the log messagethrowable
- - a throwable to logpublic void trace(Supplier<String> msg)
msg
- - supplier for the log messagepublic void trace(Supplier<String> msg, Throwable throwable)
msg
- - supplier for the log messagethrowable
- - a throwable to logpublic boolean isLoggingLevelEnabled(String logLevel)
logLevel
- a string representation of the log level, e.g. "debug"Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.