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
we might have different files in the same module, and we really don't want to output those logs at the same time.
So a possible solution could be, we define a prefix/postfix to the same module, e.g. util.debuglog('classifiers-logical-regressions'), util.debuglog('classifiers-linear-regression')
Then we could define the NODE_DEBUG below to output *-regressions only logs, would be logical-regression and linear-regression in this case.
> SET NODE_DEBUG=classifiers-*-regression
> node index.js
Activity
targos commentedon Dec 11, 2017
Thanks for opening this issue! This is something I always wanted to have :)
I opened #17607 to propose an implementation.
TylerYang commentedon Dec 11, 2017
@targos Oh thx, I just finish my implementation also. Should I propose mine or make some changes on your codebase?
targos commentedon Dec 11, 2017
Oh sure, go ahead and open a PR with yours 😉
TylerYang commentedon Dec 11, 2017
@targos thx : )
util: allow wildcards in NODE_DEBUG variable
util: allow wildcards in NODE_DEBUG variable