public class LogTrafficListener extends Object implements 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.
TrafficListener
,
ConnectionFactory.setTrafficListener(TrafficListener)
NO_OP
Constructor and Description |
---|
LogTrafficListener() |
Modifier and Type | Method and Description |
---|---|
void |
read(Command inboundCommand)
Notified for each inbound
Command . |
protected boolean |
shouldLog(Command command) |
void |
write(Command outboundCommand)
Notified for each outbound
Command . |
public void write(Command outboundCommand)
TrafficListener
Command
.write
in interface TrafficListener
public void read(Command inboundCommand)
TrafficListener
Command
.read
in interface TrafficListener
protected boolean shouldLog(Command command)
Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.