title: SLF4J Logger binding not working
body: <p>I am trying to enable my SLF4J logger but get the following console message:</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  </code></pre>
  
  <p>Even after I have added these two dependencies to my pom.xml but still have the same message:</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;slf4j-simple&lt;/artifactId&gt;
      &lt;version&gt;1.7.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I am testing out my logger like this</p>
  
  <pre><code>import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  ...
  //Logger
  private static final Logger logger = LoggerFactory.getLogger(Hello.class);
  ...
  logger.info("Test - - - Log message...");
  </code></pre>
  
  <p>I am new to Spring/Maven and thought this would be easy to solve but have had no success...</p>
  
  <p>Edit:
  Here is my Maven pom.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
      http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.myfakecompany.project&lt;/groupId&gt;
      &lt;artifactId&gt;SpringApp&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;Spring MVC Webapp&lt;/name&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;4.2.3.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
              &lt;artifactId&gt;spring-data-cassandra&lt;/artifactId&gt;
              &lt;version&gt;1.4.5.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
              &lt;version&gt;4.3.3.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &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;slf4j-simple&lt;/artifactId&gt;
              &lt;version&gt;1.7.5&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;spring-milestone&lt;/id&gt;
              &lt;name&gt;Spring Maven MILESTONE Repository&lt;/name&gt;
              &lt;url&gt;http://repo.spring.io/libs-milestone&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
  
      &lt;build&gt;
          &lt;finalName&gt;SpringMVCApp&lt;/finalName&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                      &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;path&gt;/&lt;/path&gt;
                          &lt;contextReloadable&gt;true&lt;/contextReloadable&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Edit 2:
  @Ceki, here is the mvn dependency:tree output...</p>
  
  <pre><code>[INFO] com.myfakecompany.project:SpringApp:war:1.0-SNAPSHOT
  [INFO] +- junit:junit:jar:3.8.1:test
  [INFO] +- org.springframework:spring-webmvc:jar:4.2.3.RELEASE:compile
  [INFO] |  +- org.springframework:spring-beans:jar:4.2.3.RELEASE:compile
  [INFO] |  +- org.springframework:spring-context:jar:4.2.3.RELEASE:compile
  [INFO] |  |  \- org.springframework:spring-aop:jar:4.2.3.RELEASE:compile
  [INFO] |  |     \- aopalliance:aopalliance:jar:1.0:compile
  [INFO] |  +- org.springframework:spring-core:jar:4.2.3.RELEASE:compile
  [INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
  [INFO] |  +- org.springframework:spring-expression:jar:4.2.3.RELEASE:compile
  [INFO] |  \- org.springframework:spring-web:jar:4.2.3.RELEASE:compile
  [INFO] +- org.springframework.data:spring-data-cassandra:jar:1.4.5.RELEASE:compile
  [INFO] |  +- org.springframework.data:spring-cql:jar:1.4.5.RELEASE:compile
  [INFO] |  |  \- com.google.guava:guava:jar:19.0:compile
  [INFO] |  +- org.springframework.data:spring-data-commons:jar:1.12.5.RELEASE:compile
  [INFO] |  +- com.datastax.cassandra:cassandra-driver-dse:jar:2.1.7.1:compile
  [INFO] |  |  \- com.datastax.cassandra:cassandra-driver-core:jar:2.1.7.1:compile
  [INFO] |  |     +- io.netty:netty-handler:jar:4.0.27.Final:compile
  [INFO] |  |     |  +- io.netty:netty-buffer:jar:4.0.27.Final:compile
  [INFO] |  |     |  |  \- io.netty:netty-common:jar:4.0.27.Final:compile
  [INFO] |  |     |  +- io.netty:netty-transport:jar:4.0.27.Final:compile
  [INFO] |  |     |  \- io.netty:netty-codec:jar:4.0.27.Final:compile
  [INFO] |  |     \- com.codahale.metrics:metrics-core:jar:3.0.2:compile
  [INFO] |  \- org.slf4j:jcl-over-slf4j:jar:1.7.21:runtime
  [INFO] +- org.springframework:spring-jdbc:jar:4.3.3.RELEASE:compile
  [INFO] |  \- org.springframework:spring-tx:jar:4.3.3.RELEASE:compile
  [INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
  [INFO] \- org.slf4j:slf4j-simple:jar:1.7.5:compile
  </code></pre>