Script to convert log4j.properties to log4j.xml

后端 未结 4 1139
忘了有多久
忘了有多久 2021-01-17 10:16

I need to use custom filters, so I need to convert some long log4j.properties files to log4j.xml.

Is anyone aware of a tool to do this, or willing to contribute one

4条回答
  •  猫巷女王i
    2021-01-17 11:11

    I needed to do this as well, but couldn't find a tool. Migrating by hand dozens of log4j.properties was not a palatable option. So, I bashed together a tool that can do it and released it for others to use.

    http://code.google.com/p/log4j-properties-converter/

    It's a bit rough but did the trick for the log4j properties I gave it, so any problems log them on the issue tracker. Hope you find it useful.

提交回复
热议问题