title: How configure slf4j for simple maven application to display logs properly?
body: <p>I have simple web application (<a href="https://github.com/tostao/simple-spring-mvc" rel="nofollow">src is here</a>). I try configure logger. I have <strong>logback.xml</strong> file, which looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;configuration&gt;
    &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --&gt;
      &lt;encoder&gt;
        &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{5} - %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
    &lt;/appender&gt;
    &lt;root level="DEBUG"&gt;
      &lt;appender-ref ref="STDOUT" /&gt;
    &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>and in <strong>pom.xml</strong> dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
    &lt;scope&gt;runtime&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;slf4j-nop&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In <strong>Index.java</strong> <em>Controller</em>, for test is:</p>
  
  <pre><code>LOG.info("LOG Info - Index called!");
  LOG.warn("LOG Warn -Index called!");
  LOG.trace("LOG Trace -Index called!");
  LOG.error("LOG Error -Index called!");
  LOG.debug("LOG Debug -Index called!");
  System.out.println("System out -Index called!");
  </code></pre>
  
  <p>when I start app: <strong>mvn tomcat7:run</strong> and go to page: index page (/simple-spring-mvc) on console is displayed only: <code>System out -Index called!</code>. </p>
  
  <p>Logger looks like:</p>
  
  <pre><code>private static final Logger LOG = LoggerFactory.getLogger(Index.class);
  </code></pre>
  
  <p>Please explain me, how configure it properly or what I did wrong.</p>