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

Thorbjørn Ravn Andersen thunderaxiom at hotmail.com
Tue Aug 7 11:13:41 CEST 2012

I do not believe there is.

It is not hard, however, to define your own "word" in the pattern with a

<conversionRule conversionWord="foo"

snippet, where FooConverter extends ClassicConverter.  Have a look at

-----Original Message-----
From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On
Behalf Of jaybytez
Sent: 7. august 2012 01:15
To: logback-user at qos.ch
Subject: [logback-user] Pattern - log thread id instead of thread name

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

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


View this message in context:
Sent from the Logback User mailing list archive at Nabble.com.

Logback-user mailing list
Logback-user at qos.ch

More information about the Logback-user mailing list