Michael Frederick wrote: > I need a little help. We use CruiseControl.NET to drive a project > that includes a NAnt task which internally drives a MSBuild task. I > would like to have the MSBuild output logged separately; then I will > have CruiseControl.NET pull it all back together. This should allow > me to have CC.NET report the NAnt and MSBuild outputs separately. > > It sounds like I need to have the MSBuild task logged with a different > logger. Is there a way to do this? From within a NAnt project? Any > help or starting points would be appreciated. Yes.
First add the /noconsolelogger switch to the argument list being passed to MSBuild. This will prevent the normal output from going into the NAnt log. Then add the /logger:... switch. This is trickier than most switches, because you need to specify the class name of the logger,the full path and filename to the .dll file containing the logger, and the path and filename for the intended output file. Be careful, because there's a comma between the class name and .dll name, but a semicolon between the .dll name and output file name. For example <arg value="/logger:my.logger.class,C:\mypath\mylogger.dll;myTargetLogFile" /> I'm not entirely sure whether specifying the output log file with a semicolon and file name is for all loggers, or just the MSBuild logger used by CruiseControl.Net. Since you're using CC.Net, you're probably best off using their logger, anyway. Gary ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users