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

module based minloglevel #66

Closed
orzechow opened this issue Nov 4, 2015 · 2 comments
Closed

module based minloglevel #66

orzechow opened this issue Nov 4, 2015 · 2 comments

Comments

@orzechow
Copy link

orzechow commented Nov 4, 2015

I am using glog in my project for progress and error logging. But I am flooded by ERROR messages from an included library (ceres solver) that I would like to suppress (I get the info of an error as return value anyways) without suppressing messages of my own modules.

So what I am looking for is something like the minloglevel flag on a per module basis (similar to vmodule, which is designed for VLOG messages only).

AFAIK something like this is not yet possible / implemented.

@emersonxsu
Copy link

I have the same situation and urge to get a solution for it.

@daohu527
Copy link

VLOG is implemented as follows

#define VLOG(verboselevel) LOG_IF(INFO, VLOG_IS_ON(verboselevel))

Seems you can implement the same way. Use gflag to define a variable, and then to control the log output.

@sergiud sergiud closed this as completed Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
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

4 participants