-
1. Re: Wildfly 9.0.2 log uncaught exceptions to file
gytis May 5, 2016 5:42 AM (in response to vpyang)Take a look at WildFly logging configuration: Logging Configuration - WildFly 9 - Project Documentation Editor
-
2. Re: Wildfly 9.0.2 log uncaught exceptions to file
vpyang May 9, 2016 1:32 PM (in response to gytis)My apologies, question left out an important component. I was looking for a way to log uncaught exceptions with wildfly 9.0.2 using log4j2. I've added that as a module to wildfly.
-
3. Re: Wildfly 9.0.2 log uncaught exceptions to file
jamezp May 10, 2016 6:49 PM (in response to vpyang)It might be possible to use log4j as the log manager in a standalone container, but it won't work in a managed domain. You have to remove the logging subsystem and logging extension from WildFly. Then you need to modify the modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-*.jar file and remove the META-INF/services/java.util.logging.LogManager file. Then ensure your log4j module ends up on the system modules.
Just note once you do this managed domain containers will no longer work. You'd also lose the ability to configure logging via management like CLI or the web console.
--
James R. Perkins