String (LogRecord record) { String loggerName = record.getLoggerName(); if (loggerName != null) { loggerName = smartAbbreviate(loggerName); } long startedMillis = getStartedMillis(); String relativeToStartedMillis = (startedMillis == 0) ? "-------" : String.valueOf(record.getMillis() - startedMillis); String result = String.format( myWithDateTime ? FORMAT_WITH_DATE_TIME : FORMAT_WITHOUT_DATE_TIME, record.getMillis(), relativeToStartedMillis, LogLevel.getPrettyLevelName(record.getLevel()), loggerName, formatMessage(record), LINE_SEPARATOR ); if (record.getThrown() != null) { return result + formatThrowable(record.getThrown()); } return result; }