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 ...

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.