Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lazy way to convert log4j.xml to log4j2.xml [closed]

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 ?

like image 636
k1eran Avatar asked Nov 03 '14 16:11

k1eran


2 Answers

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

like image 57
aled Avatar answered Oct 17 '22 01:10

aled


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.

like image 37
Remko Popma Avatar answered Oct 17 '22 00:10

Remko Popma