-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify log level with Node environment variable #227
Comments
This is a really important feature. |
That's indeed a good feature to have.
|
I suggest to use the 5 default levels from Logdown which are:
When setting the log level to "error", then you will only get error reports. If you set the level to "warn", then you will get warnings and errors. When setting it to "info", you will get infos, warnings and errors. So the idea is that you get the level specified and all above. |
Also, we need an env var for the browser as we do for |
How about |
To clarify, if I set
If I set
Is that how you see it? |
Yes, exactly! 👍 |
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:
The text was updated successfully, but these errors were encountered: