开发者

External Log files from Ant

开发者 https://www.devze.com 2023-01-28 08:56 出处:网络
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.

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

精彩评论

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