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

double-click on console log message doesn't open editor when message came from an inner class

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Eclipse 3.5.2, Logback console 1.1.0, logback 0.9.0, slf4j 1.5.11

    Description

      Example below. All three log messages are logged, but only the first goes to the log statement on double click.

      Scratch.java
      package logback.console.bug.demo;
      
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;
      
      public class Scratch {
      	private static final Logger LOGGER = LoggerFactory.getLogger(Scratch.class.getName());
      
      	public static void main(String[] args) {
      		LOGGER.info("hello from main()");
      		new InnerClass().someMethod();
      	}
      
      	private static class InnerClass {
      		private static final Logger LOCAL_LOGGER = LoggerFactory.getLogger(Scratch.InnerClass.class.getName());
      		public void someMethod() {
      			LOGGER.info("Hello from inner class through outer logger");
      			LOCAL_LOGGER.info("Hello from inner class through inner logger");
      		}
      	}
      }
      

      Attachments

        Activity

          People

            logback-dev Logback dev list
            joekearney Joe Kearney
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: