It's rather universal to use static logger fields. I mean, check out the documentation:
http://logging.apache.org/log4j/2.x/manual/api.html http://www.slf4j.org/faq.html#declaration_pattern On 28 August 2014 03:09, gterral <guillaume.ter...@gmail.com> wrote: > Hello Camel community, > > I'm actually using camel inside a CDI container (Weld). > > In my project in can have several CDI container inside the same JVM, and > each cdi container have is own log4j tree. > > The issue is that several camel component are saving the logger inside > static variable, this is creating some logs issue for me. > > Is there a policy for camel developers if we need to save loggers as static > or not. > > Thanks in advance > > Guillaume > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Logger-issue-always-static-tp5755807.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Matt Sicker <boa...@gmail.com>