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

Log to STDERR only when necessary #65

Open
david-bouyssie opened this issue Jul 30, 2018 · 0 comments
Open

Log to STDERR only when necessary #65

david-bouyssie opened this issue Jul 30, 2018 · 0 comments

Comments

@david-bouyssie
Copy link
Contributor

Currently GLOG outputs INFO messages to STDERR.
This can be misleading for command line users.

This issue is already reported as a comment in the code.
See raw2mzDB.cpp:

write logs to error output (GLOG does not write on standard output, but why ???)

GLOG has not been designed to output messages to STDOUT and I think it won't change.

Because we already have a lot of boost dependencies it might be worth to consider to replace GLOG by the boost::log library.
Here is the doc: https://theboostcpplibraries.com/boost.log

boost::log seems to support this feature:
https://stackoverflow.com/questions/21380530/boost-log-to-file-and-stdout-simultaneously

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