protected String createCompleteMessage ( Request request , Response response , Timer timer ) { StringBuilder sb = new StringBuilder ( request . getEffectiveHttpMethod ( ) . toString ( ) ) ; sb . append ( " " ) ; sb . append ( request . getUrl ( ) ) ; if ( timer != null ) { sb . append ( " responded with " ) ; sb . append ( response . getResponseStatus ( ) . toString ( ) ) ; sb . append ( " in " ) ; sb . append ( timer . toString ( ) ) ; } else { sb . append ( " responded with " ) ; sb . append ( response . getResponseStatus ( ) . toString ( ) ) ; sb . append ( " (no timer found)" ) ; } return sb . toString ( ) ; }
Create the message to be logged when a request is completed successfully . Sub - classes can override .