0

My class has a logger, and the class is used by many threads. Besides using thread-local technology, is there a native feature in log4j 2.0 or logback or even other logging technology that can change the logger level for a special thread and leave the logger level for other threads unchanged?

Sequoia
  • 159
  • 1
  • 7
  • That's an interesting requirement. Could you explain why you need it? – Kayaman May 22 '14 at 18:01
  • actually, the class is gonna be a servlet serving client requests, so there may be a special user connected to my server and I want to change log level for that special user – Sequoia May 22 '14 at 21:12
  • Have a look at http://stackoverflow.com/q/7404435/3080094 – vanOekel May 24 '14 at 17:17

0 Answers0