question: 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 ; } }
target:  Turns a single method parameter into a string. To keep the functionality safe we truncate overly long strings and ignore any exceptions.