private void handleThrowableFirstLine ( OutputStream sw , IThrowableProxy tp , String stackTracePrefix , boolean isRootException ) throws IOException { StringBuilder sb = new StringBuilder ( ) . append ( stackTracePrefix ) ; if ( ! isRootException ) { sb . append ( CoreConstants . CAUSED_BY ) ; } sb . append ( tp . getClassName ( ) ) . append ( ": " ) . append ( tp . getMessage ( ) ) ; sw . write ( sb . toString ( ) . getBytes ( ) ) ; sw . flush ( ) ; }
LOGBACK - 411 and LOGBACK - 750