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