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
精彩评论