[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"
conversionClass="foo.bar.FooConverter"/> 

snippet, where FooConverter extends ClassicConverter.  Have a look at
ThreadConverter.



-----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
(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-tp34263
848p34263848.html
Sent from the Logback User mailing list archive at Nabble.com.

_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list