<record>

[This is preliminary documentation and subject to change.]

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
actionActionType Action to apply to this log instance - either Start, Stop, Close or Flush. True
namefile 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
levelLevel Determine the level of logging - either Debug, Verbose, Info, Warning or Error. The default is Info. False
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.93.5002.0)