Class NettyClientLogger
java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.utils.NettyClientLogger
Logger facade similar to
to provide the
complete information about the channel. If only less verbose levels are available, then only the channel's ID is logged.
Logger, that also includes channel information in the message
when provided. When the logger has at least DEBUG level enabled, the logger uses
invalid reference
Channel#toString()
Having the channel information associated with the log message whenever available makes correlating messages that are all logged within the context of that channel possible; this is impossible to do otherwise because there is a 1:M mapping from event loops to channels.
NOTE: The absence of overrides that don't take a Channel parameter is deliberate. This is done to lessen the
chances that a {code Channel} is omitted from the log by accident.
-
Method Summary
Modifier and TypeMethodDescriptionvoidLog a DEBUG level message including the channel information.voidLog a DEBUG level message with the given exception and including the channel information.voidLog a ERROR level message and including the channel information.voidLog a ERROR level message with the given exception and including the channel information.static NettyClientLoggervoidLog a TRACE level message including the channel information.voidLog a WARN level message and including the channel information.voidLog a WARN level message with the given exception and including the channel information.
-
Method Details
-
getLogger
-
debug
-
debug
Log a DEBUG level message with the given exception and including the channel information.- Parameters:
channel- The channel for this message is being loggedmsgSupplier- Supplier for the log messaget- The throwable to log
-
warn
-
error
Log a ERROR level message with the given exception and including the channel information.- Parameters:
channel- The channel for this message is being loggedmsgSupplier- Supplier for the log messaget- The throwable to log
-
error
-
warn
Log a WARN level message with the given exception and including the channel information.- Parameters:
channel- The channel for this message is being loggedmsgSupplier- Supplier for the log messaget- The throwable to log
-
trace
-