protected String toString(Object parameter){
  if (parameter == null) {
    return NULL_STR;
  }
  try {
    String result=Misc.getAsString(parameter);
    if (result.length() > DEFAULT_ARG_STRING_MAX_LENGTH) {
      result=result.substring(0,DEFAULT_ARG_STRING_MAX_LENGTH) + DEFAULT_MAX_STRING_ENDING;
    }
    return result;
  }
 catch (  Throwable e) {
    return UNKNOWN;
  }
}

protected String toString ( Object parameter ) { if ( parameter == null ) { return NULL_STR ; } try { String result = Misc . getAsString ( parameter ) ; if ( result . length ( ) > DEFAULT_ARG_STRING_MAX_LENGTH ) { result = result . substring ( 0 , DEFAULT_ARG_STRING_MAX_LENGTH ) + DEFAULT_MAX_STRING_ENDING ; } return result ; } catch ( Throwable e ) { return UNKNOWN ; } }
turns a single method parameter into a string . to keep the functionality safe we truncate overly long strings and ignore any exceptions .
