You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2022/08/28 21:10:10 UTC

[GitHub] [logging-log4j2] ppkarwasz opened a new pull request, #1025: [LOG4J2-3583] Implements stack-valued MDC

ppkarwasz opened a new pull request, #1025:
URL: https://github.com/apache/logging-log4j2/pull/1025

   This PR implements SLF4J-531 by storing the result of `pushByKey(key, value)` in the usual thread context map and restoring the previous value, when a `popByKey(key)` call occurs.
   
   The same behavior can be obtained in the Log4j2 API using `CloseableThreadContext.put(key, value)` as "push" and closing the returned value as "pop", so I believe we do not need to add anything to the API.


-- 
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-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [logging-log4j2] ppkarwasz merged pull request #1025: [LOG4J2-3583] Implements stack-valued MDC

Posted by GitBox <gi...@apache.org>.
ppkarwasz merged PR #1025:
URL: https://github.com/apache/logging-log4j2/pull/1025


-- 
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-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org