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:
128
+
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
+
130
+
You can also set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
127
131
128
132
Example _stdout.js_:
129
133
@@ -157,6 +161,12 @@ Example:
157
161
$ DEBUG_FD=3 node your-app.js 3> whatever.log
158
162
```
159
163
164
+
### Terminal colors
165
+
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`.
0 commit comments