title: WildFly dynamic logging configuration with log4j2
body: <p>I am trying to use log4j2 as the logging framework in an EAR application. I have the log4j2 jar files packaged in the EAR and it is not created as a jboss module. I have log4j2 working fine without any problems when I use it with my log4j2.xml file.  However I want to configure it from the admin console so that I will be able to configure it at run time. I have done the following steps, but still its not working.</p>
  
  <ol>
  <li>Created a file handler.</li>
  <li>Created a new category, set its Log Level to ALL and selected the file handler as its handler.</li>
  </ol>
  
  <p>Is there any other configuration that I need to do to make this working? </p>
  
  <p>I have also added jboss-deployment-structure.xml with the following contents in EAR Project\META-INF\ directory and still no luck.</p>
  
  <p>jboss-deployment-structure.xml file</p>
  
  <pre><code>&lt;jboss-deployment-structure&gt;
      &lt;deployment&gt;
         &lt;exclude-subsystems&gt;
              &lt;subsystem name="logging" /&gt;
         &lt;/exclude-subsystems&gt;
      &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>