[logback-user] Pattern - log thread id instead of thread name

jaybytez jaybytez at yahoo.com
Tue Aug 7 01:14:50 CEST 2012


In the examples and basic usage we have a pattern like:

<pattern>%d [%thread] %level %logger - %m%n</pattern>

The thing we don't like is on weblogic, the %thread is outputted as:

[[ACTIVE] ExecuteThread: '102' for queue: 'weblogic.kernel.Default
(self-tuning)']

Is there a syntax that we can use in the pattern to just log the thread id?

Thanks,

Jay
-- 
View this message in context: http://old.nabble.com/Pattern---log-thread-id-instead-of-thread-name-tp34263848p34263848.html
Sent from the Logback User mailing list archive at Nabble.com.



More information about the Logback-user mailing list