Skip to content

Implement a flag to display logger or not #5

Description

@anouvel

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions