Skip to content
Advertisement

Migrating from log4j to log4j2 – properties file configuration

I have a Java application which is using log4j configured as below.

log4j.properties:

JavaScript

I would like to migrate to log4j2 with the same configuration as above. Haven’t found anything related to log4j2 properties configuration file as this support recently included.

How would be my log4j2.properties file with the same configuration above ?

Advertisement

Answer

Here is what I constructed after going through the documentation and worked.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement