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 <garydgreg...@gmail.com> wrote: > > 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 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. > > > > -- > > Med venlig hilsen > > Morten Sabroe Mortensen > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org