[logback-user] Incorrect thread name in plugin console
Raccoonwao
gemaspecial at yahoo.com.hk
Fri Mar 6 10:46:06 CET 2009
Hi everybody,
I am using the eclipse logback console but found that [%thread] gives me
the wrong thread name. It shows something like [Thread-70] rather than
the real thread name in my application. Here is the logging statement
private static final Logger logger =
LoggerFactory.getLogger(TestView.class);
....
logger.error("testing test ing");
....
I noticed there is a code in the
ch.qos.logback.eclipse.reciever.SocketNode (line 59), which I copied here.
try {
while (true) {
// read an event from the wire
event = (LoggingEvent) ois.readObject();
// trick to keep the original thread name
event.getThreadName();
// add it to the manager's LoggingEvent list
LoggingEventManager.getManager().addLoggingEvent(event);
}
The comment said it is a trick to keep the original thread name. It
seems not working anymore, is it? Or, am I missing something?
Also, I have fired a bug here http://jira.qos.ch/browse/CONSPLUG-18
Thanks a lot
Leung Wang Hei
Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http://hk.promo.yahoo.com/security/ 了解更多!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20090306/98555339/attachment-0001.htm>
More information about the Logback-user
mailing list