@Test
public void testTrace2() {

  ExecContextLogger log = new ExecContextLogger(LoggerFactory.getLogger("test"));
  LogAssert expect = TestLoggers.sys().expect("test", Level.DEBUG,
          Matchers.allOf(LogMatchers.hasExtraArgument(LogAttribute.origLevel(Level.TRACE)),
          LogMatchers.hasMessage("msg1")));
  ExecutionContext current = ExecutionContexts.current();
  current.setBackendMinLogLevel("test", Level.TRACE);
  log.trace("msg1");
  expect.assertObservation();
  List<Slf4jLogRecord> logs = new ArrayList<>(2);
  current.streamLogs(logs::add);
  Assert.assertEquals("msg1", logs.get(0).getMessageFormat());
}