ILogger Interface

Before we can discuss how to create new loggers, we must first take a look at what loggers are. A logger is any object that implements the ILogger (Microsoft.Build.Framework.ILogger) interface. This is a simple interface; it contains only two properties and two methods. The class diagram for this interface is shown in Figure 5-3.

ILogger interface

Figure 5-3. ILogger interface

The Verbosity property determines the level of detail that should be included in the log. If the verbosity is set by using the /verbosity (/v) switch on msbuild.exe, then this value is passed to each attached logger, but it can be overridden by parameters passed to individual ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.