Oracle WebCenter Content (MOSC)

MOSC Banner

Logs are not populating with Log4j 2.17.2

We have older java code which was using log4j 1.17 and application logs were writing to log file properly. As part of vulnerability fixing we have to migrate to log4j 2.17.2 (Mandatory as part of compliance). We have added the reference of log4j-1.2-api-2.17.2.jar, log4j-api-2.17.2.jar and log4j-core-2.17.2.jar files instead of log4j-1.17. But, with log4j-2.17, no logs are populating in the log file....though application is running and functionalities also working....but no logs in the log file.

As soon as we refer the log4j-1.17, log files are starts populating. I am not able to figure out what is going wrong here

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center