title: displaying ant task/target in recorder log
body: <p>I am using the ant task <code>&lt;record&gt;</code> to create a log file of the output and activity of my ant build script. The problem is:</p>
  
  <blockquote>
    <p>i am not seeing the names of the <code>targets</code> that are being executed.</p>
  </blockquote>
  
  <p>For instance: When my target called <code>cleanFW</code> is being executed, i only see the stuff being done inside the target and NOT the name of the target it self. Since this is happening, i have no way of telling when <code>cleanFW</code> began in the log file.</p>
  
  <p>Is there a way to get this <code>cleanFW</code> target name to appear? It was appearing when i was using the flag <code>-logfile</code>. But i had to switch to <code>&lt;record&gt;</code> because i want to record log file and see the output in console.</p>
  
  <p><strong>Using Ant 1.8.2</strong></p>
  
  <hr>
  
  <p><strong>simple solution</strong></p>
  
  <p>My simple solution to this is to just put an echo in each one of the targets. Just wondering if there was a better way.</p>
  
  <hr>
  
  <p><strong>sample code where it is not working</strong></p>
  
  <pre><code>&lt;project name="foobar"&gt;
  
  &lt;record name="test.txt" action="start" append="true" loglevel="verbose" /&gt;
  
  ... lots of property stuff here ...
  
      &lt;target name="cleanFW"&gt;
          &lt;record name="test.txtaction="start" append="true" loglevel="verbose"/&gt;
          &lt;mkdir dir="${FOOBAR_OUTPUT}"/&gt;
          &lt;mkdir dir="${FOOBAR_GEN}"/&gt;
          &lt;delete includeemptydirs="true"&gt; 
              &lt;fileset dir="${FOOBAR_BIN}" includes="**/*"/&gt;
              &lt;fileset dir="${FOOBAR_GENERATED}" includes="**/*"/&gt;
              &lt;fileset dir="${FOOBAR_NODES}" includes="**/*"/&gt;
              &lt;fileset dir="${FOOBAR_GEN}" includes="**/*"/&gt;
          &lt;/delete&gt;
          &lt;mkdir dir="${FOOBAR_OUTPUT}"/&gt;
          &lt;record name="test.txt" action="stop"/&gt;
      &lt;/target&gt;
  
  &lt;record name="test.txt" action="stop"/&gt;   
  
  &lt;/project&gt;
  </code></pre>
  
  <p>The reason why i have the first <code>record name="test.txt" action="start" append="true" loglevel="verbose" /&gt;</code> at the top, is because i want all of the statements and stuff that are before the targets to be displayed too. Like my property sets and all that jazz. I left that junk out because it is not important.</p>