Skip to content
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

Use numeric log levels instead of (or in addition to) named levels? #89

Closed
edvald opened this issue May 8, 2018 · 2 comments
Closed

Comments

@edvald
Copy link
Collaborator

edvald commented May 8, 2018

Just a thought. I for one always get confused as to which is more verbose, "verbose" or "debug". And I can imagine us wanting to set multiple levels at some point.

For example, in kubectl you can set --v=8 to dump a lot of logs. We could for example alias the named levels to the numeric levels (0=error, 1=warning, 2=info etc.), and perhaps make l an alias for --loglevel to make it more concise.

@eysi09
Copy link
Collaborator

eysi09 commented May 8, 2018

Yeah, I agree we should have the numeric levels as well since the names tend to differ between languages/frameworks. E.g. Rails has :debug, :info, :warn, :error, :fatal, and :unknown.

And we could easily extend the number of levels as well although it feels like that could be a bit confusing. What's the difference between --v=7 and --v=8 for instance? And how should the developer decide which one to use?

@eysi09 eysi09 self-assigned this May 28, 2018
@eysi09
Copy link
Collaborator

eysi09 commented Jul 3, 2018

Fixed in #194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants