NAnt
Help
Task Reference
<record> |
NAnt.Contrib.Tasks () |
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.| Attribute | Type | Description | Required |
|---|---|---|---|
| action | enum |
Action to apply to this log instance - either Start,
Stop, Close or
Flush.
| True |
| name | string | Name of destination file. | True |
| autoflush | bool | Determines whether the recorder will flush it's buffer after every write to it. The default is false. | False |
| level | NAnt.Core.Level |
Determine the level of logging - either Debug,
Verbose, Info,
Warning or Error.
The default is Info.
| False |
| failonerror | bool | False | |
| if | bool | False | |
| unless | bool | False | |
| verbose | bool | False |
<record name="${outputdir}\Buildlog.txt" level="Info" action="Start"/>
<record name="${outputdir}\Buildlog.txt" action="Close"/>