tags:

views:

321

answers:

1

how to run nant script in command line and get the timings of each task on the log file.

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

this produces console output but i cant see any timing information.

all i wanted is on each log message if nant prefixes datatime that will help me a lot.

i know nant uses log4net if i change the patternlayout in nant.exe.config it is still not working.

+3  A: 

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 />
Wimmel