title: Java log: failed to load slf4j but I'm using log4j2. How to fix?
body: <p>When I run my jar file, I get the following error:</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>The problem is that I'm not using slf4j, I'm using log4j2. It is used by a dependency. Maven correctly includes org.slf4j:slf4j-api as a transitive dependency of a library that I'm using. </p>
  
  <p>How do I get rid of this warning? I do not even want to log problems with this dependency. </p>