We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a92714d commit 1496f3fCopy full SHA for 1496f3f
doc/api/util.md
@@ -104,6 +104,19 @@ FOO 3245: hello from foo [123]
104
where `3245` is the process id. If it is not run with that
105
environment variable set, then it will not print anything.
106
107
+The `section` supports wildcard also, for example:
108
+```js
109
+const util = require('util');
110
+const debuglog = util.debuglog('foo-bar');
111
+
112
+debuglog('hi there, it\'s foo-bar [%d]', 2333);
113
+```
114
115
+if it is run with `NODE_DEBUG=foo*` in the environment, then it will output something like:
116
+```txt
117
+FOO-BAR 3257: hi there, it's foo-bar [2333]
118
119
120
Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`
121
environment variable. For example: `NODE_DEBUG=fs,net,tls`.
122
0 commit comments