Search code examples
nant

nant logs with data and time stamp


How to run NAnt scripts in command line and get the timings of each task on the log file?

using nant <record> task or 
NAnt -buildfile:testscript.build testnanttarget

This produces console output but I can't see any timing information.

All I want each log message prefixed with datatime.


Solution

  • You can use the tstamp task to display the current date/time. Just include it everywhere where you want timing information. It will not prefix each line with a timestamp, but at least you can time some strategic points.

    <tstamp />