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

Extending the Logger Abstract Class

The definition for an MSBuild logger is that it implements the ILogger interface. You don’t need to implement this interface directly; you can extend the Logger abstract class instead. When you extend this class, you need to provide the definition only for the Initialize method. The class diagram for the Logger class is shown in Figure 5-5.

Logger class diagram

Figure 5-5. Logger class diagram

From Figure 5-5 you can see that there are three helper methods that can be used to help the logging process. Those methods are summarized in Table 5-5.

Table 5-5. Logger Helper Methods

Name

Description

FormatErrorEvent

This can be used to format a ...

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