public static synchronized void
setPacketLogger(PacketLogger logger)
{
    Client.setPacketLogger(logger);
}
Sets a custom logger that will be used to log the send and received packets.
@param logger
src/main/java/core/org/xbill/DNS/Lookup.java