Skip to content

Commit

Permalink
Update Enabling logging.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbrow authored Jul 20, 2017
1 parent efb9182 commit 1ce03db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/LanguageServer/Enabling logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

If you are experiencing a problem that we are unable to diagnose based on information in your issue report, we might ask you to enable logging and send us your logs.

Logging is controlled by environment variables and is disabled by default. To enable logging launch VS Code from an environment that contains the following variables:
Logging is controlled by environment variables and is disabled by default. To enable logging, launch VS Code from an environment that contains the following variables:

```
VSCODE_CPP_LOGDIR=c:\path\to\logfolder
Expand All @@ -11,6 +11,6 @@ VSCODE_CPP_LOGFILE_LEVEL=5

When you open your folder in VS Code, we will create a vscode.cpp.log.\<pid\>.txt file for each extension process launched (\<pid\> = process id).

The log file level is a number that determines how much detail we'll log. Level 5 is generally detailed enough to give us information about what is going on in your session. We don't recommend you set this higher than 7 since the log quickly becomes cluttered with information that doesn't really help us diagnose your issues and actually makes it harder for us to spot the problem. It will also slow down the extension considerably and may make it harder for you to reproduce your problem.
The log file level is a number that determines how much detail we'll log. Level 5 is generally detailed enough to give us information about what is going on in your session. We don't recommend you set this higher than 7 since the log quickly becomes cluttered with information that doesn't really help us diagnose your issues and actually makes it harder for us to spot problems. It may also slow down the extension considerably and make it harder for you to reproduce your problem.

**Don't forget to remove the environment variables when you are finished providing us with the logs.** You wouldn't want the extension to needlessly spend CPU time and disk space writing data you don't need into log files.

0 comments on commit 1ce03db

Please sign in to comment.