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 <ralph.go...@dslextreme.com> wrote: > 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 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 > > route to a specific log4j2 logger instead of the root logger. Is this > > possible? > > > > Thanks, > > James > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > >