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

GLOG / cout compatibility #15

Open
thclark opened this issue Dec 16, 2016 · 0 comments
Open

GLOG / cout compatibility #15

thclark opened this issue Dec 16, 2016 · 0 comments
Assignees
Labels
devops System admin and devops

Comments

@thclark
Copy link
Contributor

thclark commented Dec 16, 2016

We use the google logger (glog), where source code contains printout of informational items and progress:

std::cout << some_useful_stuff << std::endl; \\ is equivalent to
LOG(INFO) << some_useful_stuff; \\ except this goes into the log file rather than the console

I don't want to change all the std::cout statements throughout the codebase (as I'm using some subrepos from third parties etc, and I want the code to remain as standard as possible). So I'd like to keep writing std::cout for informational level logging, but have that pushed to log statements.

This SO post summarises my need, with some tentative solutions.

Current workaround: use simple COUT statements so we can see progress as we're running and developing, then move to LOG macros when we're ready to deploy.

@thclark thclark self-assigned this Dec 16, 2016
@thclark thclark mentioned this issue Dec 16, 2016
@thclark thclark added the devops System admin and devops label Sep 4, 2019
@thclark thclark removed this from Octue Board Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops System admin and devops
Projects
None yet
Development

No branches or pull requests

1 participant