title: ch.qos.logback.classic and slf4j-log4j12
body: <p>I have an issue with logging of my application. Application uses slf4j and logback mechanism to implement logging. </p>
  
  <p>Logger is initialised like </p>
  
  <p>private static final Logger LOG = LoggerFactory.getLogger(Classname.class);</p>
  
  <p>But some how it was not able to generated the logs. During debugging I found error</p>
  
  <pre><code>SLF4J: Class path contains multiple SLF4J bindings.
  SLF4J: Found binding in [jar:file:/Users/xxx/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/Users/xxx/.m2/repository/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
  </code></pre>
  
  <p>then I tried removing the slf4j-log4j12 bindings from the parent pom.xml file which the application is grouped under. But still was not able to generate the logs. </p>
  
  <p>Then I found the below entry in application iml file </p>
  
  <pre><code>&lt;orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:slf4j-log4j12:1.7.5" level="project" /&gt;
  </code></pre>
  
  <p>When I removed the entry my application was able to generate logs ... Currently I dont have any clue abt using which file as reference iml files are getting generated ? So Incase I need to exclude slf4j-log4j12 from getting built into my project should i remove it in pom.xml ? </p>
  
  <p>Even if i remove it in pom.xml log does not get generated ? </p>
  
  <p>Please let me know how should I resolve the issue of log not getting generated. </p>