private static String formatSimple ( ChannelHandlerContext ctx , String eventName , Object msg ) { String chStr = ctx . channel ( ) . toString ( ) ; String msgStr = String . valueOf ( msg ) ; StringBuilder buf = new StringBuilder ( chStr . length ( ) + 1 + eventName . length ( ) + 2 + msgStr . length ( ) ) ; return buf . append ( chStr ) . append ( ' ' ) . append ( eventName ) . append ( ": " ) . append ( msgStr ) . toString ( ) ; }
Generates the default log message of the specified event whose argument is an arbitrary object .