Console Logger

When you invoke msbuild.exe the console logger will be attached by default; you can disable this by using the /noconsolelogger (/noconlog) switch. You can set the verbosity of the console logger using the /verbosity (/v) switch when using msbuild.exe. The defined values for the verbosity are shown in Table 5-1.

Table 5-1. Logger Verbosity

Long Name

Short Name

Quiet

q

Minimal

m

Normal

n

Detailed

d

Diagnostic

diag

When you are specifying the verbosity for either of these loggers you can use the long name or the short name. A common practice is to set the verbosity of the console logger to Minimal and attach file loggers with higher verbosities. That way, the console shows the progress and errors/warnings, and a log file is available for diagnosis. ...

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.