Details
-
Bug
-
Resolution: Unresolved
-
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"); } } }