I am trying to use the new log4j2 release in my application and it is not working. It was working when i used log4j-api-2.0-beta9.jar and log4j-core-2.0-beta9 but its not working after i replaced it with the new release: log4j-api-2.0.1.jar and log4j-core-2.0.1.jar

My application is developed using spring MVC and struts 2. Is there any extra reconfiguration that needed before running?

2

There are 2 best solutions below

0
On

It is not possible to say what the problem is without seeing your configurations. (According to the release notes, there were a number of bug fixes for configuration related issues ...)

However, you may be able to work out the cause of your problem for yourself by enabling "status" logging, and looking at what happens during configuration.

Reference:

0
On

If you have a custom log4j2 plugin you need to build that jar again with the new log4j2 jars.