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
You can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
122
+
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).
123
+
124
+
You can also set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
121
125
122
126
Example _stdout.js_:
123
127
@@ -151,6 +155,12 @@ Example:
151
155
$ DEBUG_FD=3 node your-app.js 3> whatever.log
152
156
```
153
157
158
+
### Terminal colors
159
+
160
+
By default colors will only be used in a TTY. However this can be overridden by setting the environment variable `USE_COLORS` to `1`.
161
+
162
+
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`.
0 commit comments