开发者

How to configure Apache XML-RPC to log to a file instead of the console?

How can I configure Apache XML-RPC to log to a file instead of the console?

EDIT: The project uses commons-logging. I开发者_StackOverflow社区'm not familiar with it.


Did you had a look at the logger used ? Log4j ? java logging ? SLF4j ? commons-logging ? Depending on the framework used you will have your answer I guess.

EDIT: based on the commons-logging documentation, if you have log4j in your classpath then it will be used. To override any log4j.properties or log4j.xml file that would be in your CP, launch your application with the following JVM parameter

-Dlog4j.configuration=path-to-your-log4j.xml
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜