public final static void debug(Logger log, String msg, IoBuffer buf) {
        if (log.isDebugEnabled()) {
            log.debug(msg);
            log.debug("Size: {}", buf.remaining());
            log.debug("Data:\n{}", HexDump.formatHexDump(buf.getHexDump()));
            log.debug("\n{}\n", toString(buf));
        }
    }
public final static void debug ( Logger log , String msg , IoBuffer buf ) { if ( log . isDebugEnabled ( ) ) { log . debug ( msg ) ; log . debug ( "Size: {}" , buf . remaining ( ) ) ; log . debug ( "Data:\n{}" , HexDump . formatHexDump ( buf . getHexDump ( ) ) ) ; log . debug ( "\n{}\n" , toString ( buf ) ) ; } }
Format debug message

@param log
Logger
@param msg
Message
@param buf
Byte buffer to debug