<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Add Logging to Ant Builds</title>
	<atom:link href="http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 07:37:31 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds/comment-page-1#comment-104146</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 11 Feb 2010 21:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds#comment-104146</guid>
		<description>Thanks for the post; the detailed init example was appreciated; helped resolve an immediate problem we were facing in a complex ant build which performed file encryption.</description>
		<content:encoded><![CDATA[<p>Thanks for the post; the detailed init example was appreciated; helped resolve an immediate problem we were facing in a complex ant build which performed file encryption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basil Vandegriend</title>
		<link>http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds/comment-page-1#comment-34322</link>
		<dc:creator>Basil Vandegriend</dc:creator>
		<pubDate>Mon, 17 Dec 2007 04:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds#comment-34322</guid>
		<description>Great comment, Floyd. I wasn&#039;t aware that the default level is warning. Thanks for the information.</description>
		<content:encoded><![CDATA[<p>Great comment, Floyd. I wasn&#8217;t aware that the default level is warning. Thanks for the information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Floyd</title>
		<link>http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds/comment-page-1#comment-34298</link>
		<dc:creator>Floyd</dc:creator>
		<pubDate>Sun, 16 Dec 2007 21:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds#comment-34298</guid>
		<description>Yo Basil, it looks like my previous comment got the source stripped from it... here&#039;s another go:

Hi Basil,

I noticed an echo command in your example up there which reminded me of some ant scripts I wrote in a previous job…
The default log level for  in Ant is _warning_, thus if you don’t specify a log level external tools will assume the text you are echoing is of warning severity.

Tools including Eclipse and CruiseControl take note of the log level and treat warnings differently from info, Eclipse for example renders warning text in a different colour.

As such, it became common practise for me to write:

  &lt;echo level=&quot;info&quot; message=&quot;blah&quot;/&gt;

for any informational messages, omitting the ‘level=”info”‘ for text that I wanted to bring to the user’s attention.
This all became a bit cumbersome, so I ended up writing a macro like the following:-

  &lt;macrodef name=&quot;say&quot;&gt;
    &lt;attribute name=&quot;message&quot; default=&quot;&quot;/&gt;
    &lt;text name=&quot;text&quot; optional=&quot;true&quot;/&gt;
    &lt;sequential&gt;
      &lt;echo level=&quot;info&quot; message=&quot;@{message}&quot;&gt;@{text}&lt;/echo&gt;
    &lt;/sequential&gt;
  &lt;/macrodef&gt;

so I could then write:

  &lt;say message=&quot;blah&quot;/&gt;

or

  &lt;say&gt;blah blah blah&lt;/say&gt;

and the message would be logged at the info log level.

It is also simple to extend the say macro to include the current date/time in the message, something I also found useful.

Just thought this might be interesting to some anyway…  Cheers, and thanks for the blog.</description>
		<content:encoded><![CDATA[<p>Yo Basil, it looks like my previous comment got the source stripped from it&#8230; here&#8217;s another go:</p>
<p>Hi Basil,</p>
<p>I noticed an echo command in your example up there which reminded me of some ant scripts I wrote in a previous job…<br />
The default log level for  in Ant is _warning_, thus if you don’t specify a log level external tools will assume the text you are echoing is of warning severity.</p>
<p>Tools including Eclipse and CruiseControl take note of the log level and treat warnings differently from info, Eclipse for example renders warning text in a different colour.</p>
<p>As such, it became common practise for me to write:</p>
<p>  &lt;echo level=&#8221;info&#8221; message=&#8221;blah&#8221;/&gt;</p>
<p>for any informational messages, omitting the ‘level=”info”‘ for text that I wanted to bring to the user’s attention.<br />
This all became a bit cumbersome, so I ended up writing a macro like the following:-</p>
<p>  &lt;macrodef name=&#8221;say&#8221;&gt;<br />
    &lt;attribute name=&#8221;message&#8221; default=&#8221;"/&gt;<br />
    &lt;text name=&#8221;text&#8221; optional=&#8221;true&#8221;/&gt;<br />
    &lt;sequential&gt;<br />
      &lt;echo level=&#8221;info&#8221; message=&#8221;@{message}&#8221;&gt;@{text}&lt;/echo&gt;<br />
    &lt;/sequential&gt;<br />
  &lt;/macrodef&gt;</p>
<p>so I could then write:</p>
<p>  &lt;say message=&#8221;blah&#8221;/&gt;</p>
<p>or</p>
<p>  &lt;say&gt;blah blah blah&lt;/say&gt;</p>
<p>and the message would be logged at the info log level.</p>
<p>It is also simple to extend the say macro to include the current date/time in the message, something I also found useful.</p>
<p>Just thought this might be interesting to some anyway…  Cheers, and thanks for the blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
