开发者

External Log files from Ant

I have configured Log4j in my project and th开发者_C百科at is invoked by an Ant task.

I want the Ant logs as well as project logs to be written to single file along with timestamps.

Could you let me know how to take care of this in Ant?


You can run Ant in such a way that it's logging is via Log4j, there's an example in the Ant Listeners & Loggers page:

ant -listener org.apache.tools.ant.listener.Log4jListener

but see the Ant documentation for proper details, how to ensure log4j.properties etc. are found.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜