获取蚂蚁日志记录文件以及屏幕/终端 [英] Getting ant to log to file as well as screen/terminal
本文介绍了获取蚂蚁日志记录文件以及屏幕/终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索这些论坛以及互联网,找不到一个明确的答案。我执行的Ant任务。我想输出得到付诸屏幕以及一个日志文件...我怎样才能做到这一点?
I've searched these forums as well as the internet and could not find a clear answer. I'm executing an ant task. I would like the output to get put to the screen as well as a log file ... how can I do this?
推荐答案
您应该使用ant任务<记录和GT;
。见<一href=\"http://ant.apache.org/manual/Tasks/recorder.html\">http://ant.apache.org/manual/Tasks/recorder.html.
You should use the ant task <record>
. See http://ant.apache.org/manual/Tasks/recorder.html.
在你的Ant文件做这样的事情:
In your ant file do something like:
...
<record name="logfile.txt" action="start" append="false" />
...
your ant code...
...
<record name="logfile.txt" action="stop"/>
从蚂蚁的两记语句之间的输出将被写入LOGFILE.TXT
The output from ant between the two record statements will be written to 'logfile.txt'
这篇关于获取蚂蚁日志记录文件以及屏幕/终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文