Share via


/Log (devenv.exe)

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. 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:

%APPDATA%\Microsoft\VisualStudio\Version\ActivityLog.xml

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

Syntax

Devenv /log Path\NameOfLogFile

Remarks

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