Class Logger
java.lang.Object
software.amazon.awssdk.utils.Logger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks if debug is enabled and if so logs the supplied messagevoid
Checks if debug is enabled and if so logs the supplied message and exceptionvoid
Checks if error is enabled and if so logs the supplied messagevoid
Checks if error is enabled and if so logs the supplied message and exceptionvoid
Checks if info is enabled and if so logs the supplied messagevoid
Checks if info is enabled and if so logs the supplied message and exceptionboolean
isLoggingLevelEnabled
(String logLevel) Determines if the log-level passed is enabledboolean
isLoggingLevelEnabled
(org.slf4j.event.Level logLevel) Determines if the provided log-level is enabled.void
Log a message at the given log level (if it is enabled).org.slf4j.Logger
logger()
static Logger
Static factory to get a logger instance for a given classstatic Logger
Static factory to get a logger instance with a specific name.void
Checks if trace is enabled and if so logs the supplied messagevoid
Checks if trace is enabled and if so logs the supplied message and exceptionvoid
Checks if warn is enabled and if so logs the supplied messagevoid
Checks if warn is enabled and if so logs the supplied message and exception
-
Method Details
-
logger
public org.slf4j.Logger logger() -
info
-
info
-
error
-
error
-
debug
-
debug
-
warn
-
warn
-
trace
-
trace
-
isLoggingLevelEnabled
public boolean isLoggingLevelEnabled(org.slf4j.event.Level logLevel) Determines if the provided log-level is enabled.- Parameters:
logLevel
- the SLF4J log level enum- Returns:
- whether that level is enabled
-
isLoggingLevelEnabled
Determines if the log-level passed is enabled- Parameters:
logLevel
- a string representation of the log level, e.g. "debug"- Returns:
- whether or not that level is enable
-
log
-
loggerFor
-
loggerFor
-