
Hi Xavier, Logback is indeed thread safe. It means that you can perform logging from multiple threads. You can even reconfigure logback while other threads are still logging. We recommended pattern that logger be stored as instance variables. See also http://www.slf4j.org/faq.html#declared_static I hope this helps, Xavier Hanin wrote:
Hi Logback community,
I've read somewhere that logback is thread safe, but I would like some confirmation about that and what does it imply. So, first, is logback Logger implementation thread safe? Second, what is the recommended pattern to get a logger and use it: - create and store it in a static variable - create and store it in an instance variable - create and store it in a local variable
Thanks in advance,
Xavier
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch