Hi,

I have not tried this before but a quick web search suggests [1, 2] you could achieve this by means of a custom converter. Regarding Houskeeping threads sharing the same name, on trunk this should no longer be the case. If you encounter other thread pools with this behaviour please flag it up so we can make sure it has been fixed on trunk.

Kind regards,
Lorenz

[1] http://logback.10977.n7.nabble.com/Pattern-log-thread-id-instead-of-thread-name-td459.html
[2] https://logback.qos.ch/manual/layouts.html#customConversionSpecifier

On 31/03/17 20:57, Ramayan Tiwari wrote:
Hi All,

After looking logback's PatternLayout, I don't think its possible to log
thread id by simply supplying a pattern for it. Has anyone looked into ways
to achieve it?

I would like to have thread ids in the log lines as well, since it appears
to be me that same thread name gets assigned for multiple threads (eg,
housekeeping task). Please correct me if that is not the case.

Thanks
Ramayan



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to