0
votes

I have a requirement to deploy two different spring boot application in one weblogic server, we are using one log4j2.xml in both applications which is copied in the class path. Now i want to separate the log4j2.xml for each application. I tried by giving this property logging.config=log4j2-app1.xml in application.properties file, but its not working. Please suggest how to handle this suituation

1

1 Answers

1
votes

Make sure to provide the right resource prefix. If log4j2-app1.xml lives in your classpath, you should probably use:

logging.config=classpath:log4j2-app1.xml

If it's an external file, you could use:

logging.config=file:log4j2-app1.xml