开发者

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

开发者 https://www.devze.com 2022-12-31 17:12 出处:网络
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

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

精彩评论

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