0

I am currently using a tag to log Nant output to a log file OUTPUT.log. I want to save the Nant output to a different file, depending on part of the target. I currently am using:

<record name="C:\\Nant\Logoutput\**output.log**" level="Info" action="Start" failonerror="false" />

I want to be able to save the target to its own file, where the file name is equal to the target.

Examples:

With output of <Target="abc"> save to abc.log
With output of <Target="xyz"> save to xyz.log.

4

1 回答 1

0

Use the target::get-current-target function.

于 2013-03-08T16:32:40.503 回答