0

We are creating an spring-boot application and using Log4j2 for logging.

Using log4j.xml for logging configs. After deploying the WAR on wildfly from admin console, its working fine.

Now we would like to change the log levels from admin console or in anyway without changing the log4j.xml or without redeploying the WAR.

I referred many articles but no use.

kj007
  • 6,073
  • 4
  • 29
  • 47
SrikanthVarma A
  • 61
  • 1
  • 10
  • Please see this [answer](https://stackoverflow.com/a/42026097/3301492). – Boris Sep 21 '18 at 10:35
  • We are using wildfly/jboss eap as server. SO we would like to do the log level changes from admin console or log profiles. Please explain about log profiles if this task is achievable through log profiles. – SrikanthVarma A Sep 21 '18 at 13:19
  • Sorry, re-read the question and realised that you need to change it via the console of WildFly. – Boris Sep 21 '18 at 13:42
  • Unfortunately WildFly does not currently support log4j2 however it's being worked on. You can track the issue here https://issues.jboss.org/browse/WFCORE-482 – James R. Perkins Sep 22 '18 at 18:27
  • Only wildfly or even jboss 7 aslo does not support log4j2? My exact requirement is we are creating an spring boot app with maven and dev server is wildfly 10 and prod sever is jboss 7. We are using log4j2 for logging. We want to have the separate log files for separate .war files and we should be able to change the log levels dynamically during the run-time without server restart. – SrikanthVarma A Sep 24 '18 at 06:16

0 Answers0