Ask questionsSpecify log level with Node environment variable

With NODE_DEBUG it's possible to specify logger names which should be active. Is there also a setting to specify the log level?

For example, I would like to see only logs from "foo" which have log level "warning" or "error" but no "debug", "info" and/or "log".

I would like to set something like:

NODE_DEBUG=foo NODE_DEBUG_LEVEL=error,warn node example/node.js

Answer questions caiogondim

I thought log and info meant the same thing in modern implementations since it behaves the same in Chrome. But it's on the spec so I say we go with what @bennyn is proposing.


Related questions

No questions were found.
Github User Rank List