File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ is wrapped in an `Error` with the original value stored in a field named
75
75
added: v0.11.3
76
76
-->
77
77
78
- * ` section ` {string} A string identifying the portion of the application for
78
+ * ` section ` {string} A wildcard string identifying the portion of the application for
79
79
which the ` debuglog ` function is being created.
80
80
* Returns: {Function} The logging function
81
81
@@ -89,16 +89,16 @@ For example:
89
89
90
90
``` js
91
91
const util = require (' util' );
92
- const debuglog = util .debuglog (' foo' );
92
+ const debuglog = util .debuglog (' foo-bar ' );
93
93
94
94
debuglog (' hello from foo [%d]' , 123 );
95
95
```
96
96
97
- If this program is run with ` NODE_DEBUG=foo ` in the environment, then
97
+ If this program is run with ` NODE_DEBUG=foo* ` or ` NODE_DEBUG=foo-bar ` in the environment, then
98
98
it will output something like:
99
99
100
100
``` txt
101
- FOO 3245: hello from foo [123]
101
+ FOO-BAR 3245: hello from foo [123]
102
102
```
103
103
104
104
where ` 3245 ` is the process id. If it is not run with that
You can’t perform that action at this time.
0 commit comments