O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

FileLoggerBase and XmlLogger

In order to demonstrate a realistic logger that doesn’t extend ConsoleLogger, I will show you the XmlLogger. The full source for this logger is available at my open source MSBuild project, codeplex.com/sedodream, as well as in the samples provided with this text. By default, MSBuild will create a text-based log, but if you are going to feed this log to other applications for processing or presentation it might be easier if you had an XML-based log. Since one doesn’t ship with MSBuild, you can write your own. In this section we will do just that.

Before we get into the implementation of the XmlLogger take a look at the output from the logger shown next. The command executed from the Examples.Loggers\bin\Debug\ directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required