private String buildMessage ( String rawMessage ) { StringBuilder msg = new StringBuilder ( ) ; if ( changeLogName != null ) { msg . append ( changeLogName ) . append ( ": " ) ; } if ( changeSetName != null ) { msg . append ( changeSetName . replace ( changeLogName + "::" , "" ) ) . append ( ": " ) ; } msg . append ( rawMessage ) ; return msg . toString ( ) ; }
Build a log message with optional data if it exists .