/Log (devenv.exe)


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

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:


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


Devenv /log Path\NameOfLogFile  


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

The log is written for all instances of Visual Studio that you've invoked with the /log switch. It doesn't log instances of Visual Studio that you've invoked without the switch.

See Also

Devenv Command Line Switches