Is there a easy/lazy way (e.g a shell script etc) to convert a big log4j.xml file to log4j2.xml equivalent?
Or does everyone do this manually ?
I started writing a script to migrate simple use cases from log4j.properties to log4j2.xml
. It is currently in a very early stage but can convert some simple configurations. It could be extended for similar log4j.xml
configurations.
https://github.com/mulesoft-labs/log4j2-migrator
There is currently no tool to automatically convert log4j-1.x configurations to log4j2 configurations.
The log4j2 configuration is simpler however, and much, much better documented. The log4j2 manual provides lots of examples for the available lookups, appenders, layouts and filters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With