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

Implement a flag to display logger or not #5

Open
anouvel opened this issue Jun 24, 2016 · 0 comments
Open

Implement a flag to display logger or not #5

anouvel opened this issue Jun 24, 2016 · 0 comments
Assignees

Comments

@anouvel
Copy link

anouvel commented Jun 24, 2016

In a multi-part project (consider termcaps, parser, job control, hum). To remove the output of the logger for some part, implement a flag.

general : L_G 0x01
termcaps : L_T 0x02
parser : L_P 0x04
job : L_J 0x08

and call the logger like it :

log_info(L_P | L_T, "%s", "log message");

This will display messages for general (everytime), parser and terncaps, but not job control.

@anouvel anouvel self-assigned this Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant