You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__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`.
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).
182
+
## Output streams
189
183
190
-
You can also set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
184
+
By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
191
185
192
186
Example _stdout.js_:
193
187
@@ -211,15 +205,6 @@ error('now goes to stdout via console.info');
211
205
log('still goes to stdout, but via console.info now');
212
206
```
213
207
214
-
### Save debug output to a file
215
-
216
-
You can save all debug statements to a file by piping them.
0 commit comments