title: SLF4J logging with jboss/wildfly 10
body: <p>I have a Java webapp running in a WildFly 10 server. I used to have the following libraries as Maven dependencies:</p>
  
  <pre><code>        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
  
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
  
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
  
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
  </code></pre>
  
  <p>I would now like to use wildfly's builtin logging subsystem.</p>
  
  <ul>
  <li>Which libraries do I need to add to my project(s)?</li>
  <li>How do I configure the default log-category and root logger declared in standalone.xml to log everything from packages "com.mycompany" at level "debug"?</li>
  <li>I'm running the wildfly server as a plugin in my eclipse. By using the console handler, I want the logs to be written to the console of Eclipse</li>
  </ul>
  
  <p>Currently, it isn't working and I'm not sure which of the 3 steps have I have misconfigured. Here's a snippet from standalone.xml:</p>
  
  <pre><code> ...            
          &lt;logger category="com.company"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;root-logger&gt;
              &lt;level name="DEBUG"/&gt;
              &lt;handlers&gt;
                  &lt;handler name="CONSOLE"/&gt;
                  &lt;handler name="FILE"/&gt;
              &lt;/handlers&gt;
          &lt;/root-logger&gt;
   ...
  </code></pre>