private static void safeObjectAppend(StringBuilder sbuf, Object o) {
        try {
            String oAsString = o.toString();
            sbuf.append(oAsString);
        } catch (Throwable t) {
            Reporter.error("Failed toString() invocation on an object of type [" + o.getClass().getName() + "]", t);
            sbuf.append("[FAILED toString()]");
        }

    }
Assumes that argArray only contains arguments with no throwable as last element.

@param messagePattern
@param argArray
slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java