That's the general purpose of the ContextDataProvider extension API.
See
https://logging.apache.org/log4j/2.x/manual/extending.html#ContextDataProvider
for basic details.
On Fri, Mar 4, 2022 at 8:31 AM Gary Gregory wrote:
>
> An example would help...
>
> Gary
>
> On Fri, Mar 4, 2022 at 8:52 AM
An example would help...
Gary
On Fri, Mar 4, 2022 at 8:52 AM Morten Sabroe Mortensen <
morten.sabroe.morten...@gmail.com> wrote:
> I miss a handler or a mechanism to have ThreadContext be pre-populated.
>
> Does anything exist which is called once per thread -- and without explicit
> invocation
I miss a handler or a mechanism to have ThreadContext be pre-populated.
Does anything exist which is called once per thread -- and without explicit
invocation by my program, of course -- ?
The values I want to pre-populate with are non-trivial and need to be read
by code; they are not constants.