Different logger instances per thread?
smabie opened this issue · 1 comments
smabie commented
Hi, I would like to have a different logger instance used per thread, is this possible?
Right now using the multiple writers functionality to simulate this functionality, but it's quite suboptimal.
emabee commented
That's indeed not directly supported.
An alternative solution could be using a line format like with_thread
, which adds the thread name to the log line header, and then isolating a concrete thread by grepping for T[<thread_name>]
etc.