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
You can't use a log manager configuration file, a log4j2.xml in your case, and configure logging with management operations from your deployment. The management operations only work on the logging subsystem.
--
James R. Perkins