Skip to content

Commit a4e36a8

Browse files
committed
Readme: fix USE_COLORS to DEBUG_COLORS
Also remove trailing whitespace
1 parent 4e61d2a commit a4e36a8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ setInterval(function(){
5858
```cmd
5959
set DEBUG=*,-not_this
6060
```
61-
61+
6262
Note that PowerShell using different syntax to set environment variables.
63-
63+
6464
```cmd
6565
$env:DEBUG = "*,-not_this"
6666
```
@@ -120,13 +120,13 @@ setInterval(function(){
120120
Colored output looks something like:
121121

122122
![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)
123-
123+
124124
## Output streams
125125

126-
126+
127127
### stderr vs stdout
128128
By default `debug` will log to stderr, however this can be changed by setting the environment variable `DEBUG_FD` to `1` for stdout and `2` for stderr (the default value).
129-
129+
130130
You can also set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
131131

132132
Example _stdout.js_:
@@ -163,10 +163,10 @@ $ DEBUG_FD=3 node your-app.js 3> whatever.log
163163

164164
### Terminal colors
165165

166-
By default colors will only be used in a TTY. However this can be overridden by setting the environment variable `USE_COLORS` to `1`.
167-
168-
Note: Certain IDEs (such as WebStorm) don't support colors on stderr. In these cases you must set `USE_COLORS` to `1` and additionally change `DEBUG_FD` to `1`.
169-
166+
By default colors will only be used in a TTY. However this can be overridden by setting the environment variable `DEBUG_COLORS` to `1`.
167+
168+
Note: Certain IDEs (such as WebStorm) don't support colors on stderr. In these cases you must set `DEBUG_COLORS` to `1` and additionally change `DEBUG_FD` to `1`.
169+
170170
## Authors
171171

172172
- TJ Holowaychuk

0 commit comments

Comments
 (0)