static String choppedStatementNoLineChange ( String statement ) { // \r\n needs to be the first element in the pipe. statement = statement . replaceAll ( "\\r\\n|\\r|\\n" , " " ) ; if ( statement . length ( ) <= MAX_OUTPUT_STMT_LENGTH ) { return statement ; } return statement . substring ( 0 , MAX_OUTPUT_STMT_LENGTH ) + "...... (" + ( statement . length ( ) - MAX_OUTPUT_STMT_LENGTH ) + " characters omitted)" ; }
Chopped statements with all line - changing character being removed for saving space of log .