MaxAller opened a new issue, #3177: URL: https://github.com/apache/logging-log4j2/issues/3177
## Description On [this page](https://logging.apache.org/log4j/2.x/manual/thread-context.html#init) ([in source](https://github.com/apache/logging-log4j2/blob/2.x/src/site/antora/modules/ROOT/pages/manual/thread-context.adoc#initializing-thread-context)), this example is given: ``` LOGGER.debug("Starting background thread for user"); Map<String, String> mdc = ThreadContext.getImmutableContext(); // (1) List<String> ndc = ThreadContext.getImmutableStack().asList(); // (1) executor.submit(() -> { try (CloseableThreadContext.Instance ignored = CloseableThreadContext .putAll(values) // (2) .pushAll(messages)) { // (2) LOGGER.debug("Processing for user started"); // ... } }); ``` However...there's no connection between the (1) and (2) items. Is `values` supposed to be `mdc`, and `messages` should be `ndc`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org