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
Constructors -
Method Summary
-
Constructor Details
-
LogTrafficListener
public LogTrafficListener()
-
-
Method Details
-
write
Description copied from interface:TrafficListenerNotified for each outboundCommand.- Specified by:
writein interfaceTrafficListener- Parameters:
outboundCommand-
-
read
Description copied from interface:TrafficListenerNotified for each inboundCommand.- Specified by:
readin interfaceTrafficListener- Parameters:
inboundCommand-
-
shouldLog
-