After upgrading the log4j core and api jars from 2.8.2 version to 2.17.1, Incorrect date is getting displayed in the logs

Viewed 9

After upgrading the log4j core and api jars from 2.8.2 version to 2.17.1, Incorrect date is getting displayed in the logs. If the jar is reverted to 2.8.2 then the sysdate of the vm is picked up and displayed in the logs. Below is how the date is displayed.

Actual result: [12-31-69 04:00:00] Expected result is [current date of the vm]

I have tried adding "Enhanced Pattern Layout" in the Log4j2config.xml and log4j.properties It didn't help in fixing the issue. Any input on this will be helpful

0 Answers
Related