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

Verbose logging by duping stderr #17

Open
Stantheman opened this issue Dec 15, 2013 · 1 comment
Open

Verbose logging by duping stderr #17

Stantheman opened this issue Dec 15, 2013 · 1 comment

Comments

@Stantheman
Copy link
Owner

Every time I think I want a verbose flag, it means I've been looking at a problem for too long. I think what I'd really like to do is dup STDERR, and send major errors to it, and minor updates on stderr. That way you can 2>/dev/null and still see major errors, or 3>/dev/null 2>&3 for silence. Need to double check man page since forking gives you open file descriptors -- can't remember if I can be sure that 3 is open.

I'm thinking there's some problem with this because otherwise this seems like a really cool way to do with log levels

@Stantheman
Copy link
Owner Author

It's more verbose now, but I still want to investigate this as an option.

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

No branches or pull requests

1 participant