I have logs lines with (%t) like:
(Camel (camel-1) thread #17 - Split)
or
(Camel (camel-1) thread #4 - JmsConsumer[my.queue])
I see that chainsaw will stop parsing the thread name at the first right parenthesis, and consider the rest as next token. I think it should consider the levels and save them in a stack, sth like:
- push the left parenthesis into a stack
- whenever it sees a right parenthesis, pops out a left paring one
- if stack is not empty, continue parsing this token.
Now the workaround is to change the log format to be like -{%t}-, and configure chainsaw to be the same. That is fine at dev time, but will not solve production issue when the format is fixed.