title: Injecting a slf4j Logger: Unsatisfied dependencies for type Logger with qualifiers @Default
body: <p>I want to inject a Logger into a bean in my maven dynamic web project running on WildFly 10.</p>
  
  <p><strong>I added the dependency in my POM. The scope is provided in WildFly:</strong></p>
  
  <pre><code>    &lt;!-- Logger --&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.2&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>I created a Producer:</strong></p>
  
  <pre><code>import javax.enterprise.inject.Produces;
  import javax.enterprise.inject.spi.InjectionPoint;
  import javax.inject.Singleton;
  
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  
  @Singleton
  public class LoggerProducer {
  
      @Produces
      Logger createLogger(final InjectionPoint ip) {
          return LoggerFactory.getLogger(ip.getMember().getDeclaringClass());
      }
  }
  </code></pre>
  
  <p><strong>And then I tried to inject a Logger:</strong></p>
  
  <pre><code>@Inject
  private Logger log;
  </code></pre>
  
  <p>At this point I am already getting a Warning:</p>
  
  <p><strong>No bean is eligible for injection to the injection point [JSR-346 §5.2.2]</strong></p>
  
  <p>And when I try to use it, I am getting this error:</p>
  
  <pre><code>Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Logger with qualifiers @Default
    at injection point [BackedAnnotatedField] @Inject private init.StartupBean.log
    at init.StartupBean.log(StartupBean.java:0)
  </code></pre>
  
  <p>What am I missing ? Did I forget something ?</p>