[slf4j-user] How to pre-populate a local MDC?
Morten Sabroe Mortensen
morten.sabroe.mortensen at gmail.com
Fri Mar 4 13:56:18 CET 2022
Does SLF4J have some handle allowing thread-local MDC values being pre-set?
What I miss and seek is some SLF4J-specific handle being invoked once per
thread -- something quite simple and not unlike the ContextDataProvider
handle in Log4j2 being invoked once per log event (the handle itself is
obtained through a ServiceLoader).
Are there any tricks to have MDC values be pre-set -- implicitly, of course
without making explicit method-calls -- ?
--
Med venlig hilsen
Morten Sabroe Mortensen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20220304/72150132/attachment.html>
More information about the slf4j-user
mailing list