> I'd love to see the logging system allow me to implement an XML > log listener which can output a simple file that I can transform > into a nice XHTML build log to place straight on the web server. > It would be strait forward enough to make this...
void Example() { Trace.WriteLine("target-name", "target"); Trace.Indent(); Trace.WriteLine("some output", "taskname"); Trace.Indent(); Console.WriteLine("output from tool"); Trace.Unindent(); Trace.WriteLine("some more output", "taskname"); Trace.Unindent(); } ...output the following... <output> <trace category="target"> <line>target-name</line> </trace> <indent> <trace category="taskname"> <line>some output</line> </trace> <indent> <trace> <line>output from tool</line> </trace> </indent> <trace category="taskname"> <line>some more output</line> </trace> </indent> </output> Is that the kind of thing you had in mind? Jamie. -- NUnitAddin - Point and Test NUnit integration for Visual Studio.NET http://dotnetweblogs.com/nunitaddin/ http://sourceforge.net/projects/nunitaddin/ -----Original Message----- From: Simon Steele [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 09:41 To: [EMAIL PROTECTED] Subject: RE: [nant-dev] Indenting external program output? Hi, I'd love to see the logging system allow me to implement an XML log listener which can output a simple file that I can transform into a nice XHTML build log to place straight on the web server. In addition, on my nightly build machine I could then combine all of the XML files into one large page detailing the success/failure of all builds (I am attempting to use NAnt to run the entire build and release process for multiple products). That would be really cool, -- Simon Steele Programmers Notepad - http://sf.net/projects/pnotepad/ > -----Original Message----- > From: Scott Hernandez [mailto:[EMAIL PROTECTED]] > Sent: 14 February 2003 04:14 > To: Matthew Mastracci > Cc: [EMAIL PROTECTED] > Subject: Re: [nant-dev] Indenting external program output? > > > I think that is a great idea. It should be as simple as > post-processing the output stream and pre-pending the > (indent) spaces at the front of each line. It might be easier > to create an PrependedStringReader that take a string to > pre-pend to each line, and the stream to read from. Then we > can just use that everywhere else :) > > It might even be useful to provide an option for some kind > of custom *StringReader for each kind of program output. It > would be cool to use something like the ant cvslog cvsreader > to format the output of a cvs command. That way we could get > xml, or just nicer looking formatted text. > > I'm really open to any implementation, just throwing out some > idea after an evening at the show ... __________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers