private String getFormattedDate() {
        Date now = new Date();
        String dateText;
        synchronized (CONFIG_PARAMS.dateFormatter) {
            dateText = CONFIG_PARAMS.dateFormatter.format(now);
        }
        return dateText;
    }
To avoid intermingling of log messages and associated stack traces, the two
operations are done in a synchronized block.

@param buf
@param t
slf4j-simple/src/main/java/org/slf4j/simple/SimpleLogger.java