03.28 Understanding Commands: Logging Commands

COMMAND

log; Tools.LogCommandWindowOutput

VERSIONS

2005, 2008, 2010

CODE

vstipTool0071

When using commands, sometimes you want to keep a log of the ones you used. This is especially useful when you are experimenting with commands to see what iterations you went through. The syntax for logging is as follows:

log [filename] [/on|/off] [/overwrite]

Or you can use the following:

Tools.LogCommandWindowOutput [filename] [/on|/off] [/overwrite]

Arguments

The following sections describe what the preceding arguments do.

Filename

It’s highly recommended that you use a path and file name; otherwise, the default file name is cmdline.log and the log file is stored at C:\Users\<user>\AppData\Roaming\Microsoft\VisualStudio\<version>. ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® 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.