I have some libraries that leverage slf4j for logging (can't change it)
however my application leverages log4j2 and the slf4j-log4j2 bridge. I was
wondering if there is a way I can at the beginning of the request flow set
a value in the ThreadContext or something so that the slf4j loggers will
What do you mean by “request flow”? You can certainly do this in your code.
Ralph
On Dec 19, 2014, at 6:10 AM, James Hutton james.a.hut...@gmail.com wrote:
I have some libraries that leverage slf4j for logging (can't change it)
however my application leverages log4j2 and the slf4j-log4j2
So for example a cxf interceptor that is using slf4j internally, I'd like
to add an interceptor before it to add items to the ThreadContext that
would cause getLogger(Class) to return a different logger based upon the
value set in the ThreadContext.
On Fri, Dec 19, 2014 at 9:55 AM, Ralph Goers