[logback-dev] [JIRA] Created: (CONSPLUG-18) Incorrect Thread name in Logback plugin console
Leung Wang Hei (JIRA)
noreply-jira at qos.ch
Tue Mar 3 04:45:48 CET 2009
Incorrect Thread name in Logback plugin console
-----------------------------------------------
Key: CONSPLUG-18
URL: http://jira.qos.ch/browse/CONSPLUG-18
Project: Console Plugin
Issue Type: Bug
Components: other
Environment: Win XPP SP2
Eclipse 3.4.0 Build id: I20080617-2000
JVM 1.6.0_12
Reporter: Leung Wang Hei
Assignee: Logback dev list
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?
Thanks a lot
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list