<record>

A task that records the build's output to a file. Loosely based on Ant's Record task.

This task allows you to record the build's output, or parts of it to a file. You can start and stop recording at any place in the build process.

Parameters

AttributeTypeDescriptionRequired
actionenum Action to apply to this log instance - either Start, Stop, Close or Flush. True
namestring Name of destination file. True
autoflushbool Determines whether the recorder will flush it's buffer after every write to it. The default is false. False
levelNAnt.Core.Level Determine the level of logging - either Debug, Verbose, Info, Warning or Error. The default is Info. False
failonerrorboolFalse
ifboolFalse
unlessboolFalse
verboseboolFalse

Examples

            <record name="${outputdir}\Buildlog.txt" level="Info" action="Start"/>
            <record name="${outputdir}\Buildlog.txt" action="Close"/>