This content has been marked as final.
Show 1 reply
-
1. Re: Does Wildfly ignores the log4j2.xml config?
gir489 Sep 20, 2017 1:26 PM (in response to cwansart)Logging Configuration - WildFly 10 - Project Documentation Editor
It appears Wildfly 10 only supports the log4j.xml format, as I don't see log4j2.xml in the list. I'd also recommend using log4j as a META-INF\MANIFEST.MF dependency, since Wildfly already has a logging framework, there's no reason for your app to carry around one, too.
Per-deployment Logging
Per-deployment logging allows you to add a logging configuration file to your deployment and have the logging for that deployment configured according to the configuration file. In an EAR the configuration should be in the META-INF directory. In a WAR or JAR deployment the configuration file can be in either the META-INF or WEB-INF/classes directories.
The following configuration files are allowed:
- logging.properties
- jboss-logging.properties
- log4j.properties
- log4j.xml
- jboss-log4j.xml