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 TypeMethodDescriptionvoid
Log a DEBUG level message including the channel information.void
Log a DEBUG level message with the given exception and including the channel information.void
Log a ERROR level message and including the channel information.void
Log a ERROR level message with the given exception and including the channel information.static NettyClientLogger
void
Log a TRACE level message including the channel information.void
Log a WARN level message and including the channel information.void
Log a WARN level message with the given exception and including the channel information.
-
Method Details
-
getLogger
-
debug
Log a DEBUG level message including the channel information.- Parameters:
channel
- The channel for this message is being loggedmsgSupplier
- Supplier for the log message
-
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
Log a WARN level message and including the channel information.- Parameters:
channel
- The channel for this message is being loggedmsgSupplier
- Supplier for the log message
-
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
Log a ERROR level message and including the channel information.- Parameters:
channel
- The channel for this message is being loggedmsgSupplier
- Supplier for the log message
-
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
Log a TRACE level message including the channel information.- Parameters:
channel
- The channel for this message is being loggedmsgSupplier
- Supplier for the log message
-