Uploaded image for project: 'Logback-Beagle - the console plugin for Eclipse'
  1. Logback-Beagle - the console plugin for Eclipse
  2. CONSPLUG-18

Incorrect Thread name in Logback plugin console

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • other
    • None
    • Win XPP SP2
      Eclipse 3.4.0 Build id: I20080617-2000
      JVM 1.6.0_12

    Description

      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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            raccoonwao Leung Wang Hei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: