LogEvent { String message() { if (arguments == null || arguments.length == 0) return message; var builder = new StringBuilder(256); LogManager.FILTER.append(builder, message, arguments); return builder.toString(); } LogEvent(String logger, Marker marker, LogLevel level, String message, Object[] arguments, Throwable exception);   }
@Test void message() { var event = new LogEvent("logger", null, LogLevel.ERROR, "error", null, null); assertThat(event.message()).isEqualTo("error"); event = new LogEvent("logger", null, LogLevel.ERROR, "error-{}", new Object[]{1}, null); assertThat(event.message()).isEqualTo("error-1"); }