Log4j2 ThreadContext support

Description

The Log4J2 current wrapper is apparently cleaning the ThreadContext map after each logs.

This prevents, if i'm not mistaken, the usage of ThreadContext as described here

I proposed a pull request to resolve this here.

I would prefer to use only the Log4j2 in my app code and not the PaxContext directly.

Environment

None

Activity

Show:
Grzegorz Grzybek
May 28, 2019, 9:38 AM

It's working now in my https://github.com/ops4j/org.ops4j.pax.logging/tree/master-improvements branch and there are tests to prove it .

Grzegorz Grzybek
June 3, 2019, 3:28 PM

Fixed and tested here.

Grzegorz Grzybek
May 6, 2020, 9:39 AM

Fixed also here in 1.10.x branch.

Assignee

Grzegorz Grzybek

Reporter

Guillaume KLECH

Fix versions

Labels

None

Affects versions

Priority

Major
Configure