public String execute ( String clientID , String name , long time , Level level , Object message , Throwable throwable ) { StringBuilder sb = new StringBuilder ( ) ; if ( throwable != null ) { sb . append ( throwable . toString ( ) ) ; String newline = System . getProperty ( "line.separator" ) ; StackTraceElement [ ] stackTrace = throwable . getStackTrace ( ) ; for ( int i = 0 ; i < stackTrace . length ; i ++ ) { StackTraceElement element = stackTrace [ i ] ; sb . append ( newline ) ; sb . append ( "\tat " ) ; sb . append ( element . toString ( ) ) ; } } return sb . toString ( ) ; }
Set the log data .