-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aligns error reporting with the GNU standard #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Just some minor suggestions -- completely up to you in the end though!
Usually the split between stdout and stderr is such that to stdout goes stuff that you may want to pipe into another tool and all diagnostics into stderr. E.g. with curl all progress and debug stuff from -v goes to stderr but the file you're downloading goes to stdout. Not sure if there is a meaningful stdout for LB though |
@t4ccer how do you use this output with Emacs? I assume you get something out of the box with some kind of mode? |
Plain emacs |
Closes #144
Tried my best to align it but there's still awkwardness in the output. I don't know how GNU standard https://www.gnu.org/prep/standards/html_node/Errors.html accounts for message types (info/err/debug etc). I would like to have smtn like Syslog tbh, but whatever IDEs want I'm fine with that.
Maybe I should just split to stdout for INFO and stderr for ERROR, I always disliked having 2 separate files for this especially when I'm trying to pipe and then completely forget how to process the stderr.
Example