xml 如何使用xml配置log4j 1.2
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13653854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to configure log4j 1.2 using xml
提问by barclay
I am stuck with legacy code that uses log4j 1.2.12, and am trying to resolve some errors it is throwing about appenders. I cannot find documentation for log4j 1.2 - I keep getting redirected to log4j 2. Nice, but not helpful. The main documentation for 1.2 doesn't have any sample xml. If anybody can point me to good documentation on this I would really appreciate it.
我坚持使用 log4j 1.2.12 的遗留代码,并试图解决它抛出的关于附加程序的一些错误。我找不到 log4j 1.2 的文档 - 我一直被重定向到 log4j 2。很好,但没有帮助。1.2 的主要文档没有任何示例 xml。如果有人能指出我对此的良好文档,我将不胜感激。
采纳答案by Michael Wyraz
The original documentation was available at http://wiki.apache.org/logging-log4j/Log4jXmlFormat
原始文档位于http://wiki.apache.org/logging-log4j/Log4jXmlFormat
The wiki is in maintenance at the moment, so I cannot verify that the link is still valid. You will find the document at archive.org: http://web.archive.org/web/20121024061840/http://wiki.apache.org/logging-log4j/Log4jXmlFormat
维基目前正在维护中,所以我无法验证链接是否仍然有效。您将在 archive.org 找到该文档:http://web.archive.org/web/20121024061840/http: //wiki.apache.org/logging-log4j/Log4jXmlFormat

