@Test
void appendTrace() {

    var event = new LogEvent("logger", Markers.errorCode("ERROR_CODE"), LogLevel.WARN, "message-{}", new Object[]{1}, new Error());
    var builder = new StringBuilder();
    event.appendTrace(builder, System.nanoTime());
    assertThat(builder.toString()).contains("WARN logger - [ERROR_CODE] message-1");
    builder = new StringBuilder();
    event = new LogEvent("logger", null, LogLevel.DEBUG, "message", null, null);
    event.appendTrace(builder, System.nanoTime());
    assertThat(builder.toString()).contains("logger - message");
}