private String getLogOutput(Object object) {
        String output = "NULL";
        if (object == null) {
            return output;
        }
        try {
            if (object.getClass().isArray() || Collection.class.isAssignableFrom(object.getClass())) {
                output = ReflectionToStringBuilder.toString(object, ToStringStyle.MULTI_LINE_STYLE);
            } else {
                output = object.toString();
            }
        } catch (RuntimeException e) {
            output = object.toString();
        }
        return output;
    }
Internal class used to build various types of log messages. Only intended for internal use.
core/src/main/java/com/github/dozermapper/core/util/LogMsgFactory.java