1 Reply Latest reply on Apr 21, 2014 2:21 PM by jamezp

    WildFly dynamic logging configuration with log4j2

    albinjoseph

      Hello,

       

      I am trying to use log4j2 as the logging framework in one of the application. I have log4j2 working fine without any problems when I use it with log4j2.xml file. However I want to configure it from the admin console. I have done the following steps, but still its not working.

       

      1. Created a file handler.

      2. Created a new category, set its Log Level to ALL and selected the file handler as its handler.

       

      Is there any other configuration that I need to do to make this working? I have also added jboss-deployment-structure.xml with the following contents in EAR Project\META-INF\ directory and still no luck.

       

      jboss-deployment-structure.xml file

      <jboss-deployment-structure>

        <deployment>

        <exclude-subsystems>

        <subsystem name="logging" />

        </exclude-subsystems>

        </deployment>

      </jboss-deployment-structure>

       

      Regards

      -Albin