Package com.rabbitmq.client.impl
Class LogTrafficListener
java.lang.Object
com.rabbitmq.client.impl.LogTrafficListener
- All Implemented Interfaces:
TrafficListener
TrafficListener
that logs Command
at TRACE
level.
This implementation checks whether the TRACE
log level
is enabled before logging anything. This TrafficListener
should only be activated for debugging purposes, not in a production
environment.
- Since:
- 5.5.0
- See Also:
-
Field Summary
Fields inherited from interface com.rabbitmq.client.TrafficListener
NO_OP
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LogTrafficListener
public LogTrafficListener()
-
-
Method Details
-
write
Description copied from interface:TrafficListener
Notified for each outboundCommand
.- Specified by:
write
in interfaceTrafficListener
- Parameters:
outboundCommand
-
-
read
Description copied from interface:TrafficListener
Notified for each inboundCommand
.- Specified by:
read
in interfaceTrafficListener
- Parameters:
inboundCommand
-
-
shouldLog
-