/Log (devenv.exe)

Logs all activity to the log file for troubleshooting. This file appears after you've called devenv /log at least once. By default, the log file is located here:


where <Version> is the Visual Studio version. However, you may specify a different path and file name.


devenv /Log NameOfLogFile


  • NameOfLogFile

    Required. The full path and name of the log file to save to.


This switch must appear at the end of the command line, after all other switches.

The log is written only for all instances of Visual Studio that you've opened with the /Log switch.


This example directs logging to the MyVSLog.xml file in the user's home directory.

devenv /log "%USERPROFILE%\MyVSLog.xml"

See also