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

File Logger

The other logger that is shipped with MSBuild is the file logger, which logs messages to a file. With MSBuild 3.5 a new set of command line switches are provided to attach a file logger. We will first discuss the 3.5 syntax then the 2.0 syntax. In order to attach a file logger you can use the /fl switch and the /flp switch to specify its parameters, similar to the /clp switch. For example, you can use the command msbuild Logging01.proj /fl to attach a file logger without specifying any parameters. You can also use /fl[n] and /flp[n] where n ranges from 1 to 9 in order to attach additional file loggers. When you use these switches /flp1 corresponds to /fl1 and /flp4 o /fl4. If you specify parameters using /flp[n] then the /fl[n] is ...

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