Package org.xbill.DNS
Interface PacketLogger
public interface PacketLogger
Custom logger that can log all packets that were sent or received.
- Author:
- Damian Minkov
-
Method Summary
Modifier and TypeMethodDescriptionvoidlog(String prefix, SocketAddress local, SocketAddress remote, byte[] data) Logs data (usually a DNS message in wire format) that was sent or received within the dnsjava library.
-
Method Details
-
log
Logs data (usually a DNS message in wire format) that was sent or received within the dnsjava library.This method can be invoked concurrently from any thread.
- Parameters:
prefix- a note of where the package originated, e.g.TCP read.local- the local (i.e. this pc) socket address of the communication channel.remote- the remote (i.e. the server) socket address of the communication channel.data- the transferred data, usually a complete DNS message.
-