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

Categorize log messages into classes to make logs more readable #45

Open
prajnoha opened this issue Aug 20, 2020 · 0 comments
Open

Categorize log messages into classes to make logs more readable #45

prajnoha opened this issue Aug 20, 2020 · 0 comments
Labels

Comments

@prajnoha
Copy link
Member

prajnoha commented Aug 20, 2020

If we use detailed logging, we don't necessarily need to be interested in certain kind of messages and they just make the log uselessly long and tiresome to read.

We should go through all existing log messages and put each one into a category, creating sane categories as needed. Then we can enable only the categories we need.

There's already some preliminary support for categorization in log.c/log_output via class_id arg:

void log_output(int level_id, const char *prefix, int class_id, int errno_id,                                                                                                                                        
                const char *file_name, int line_number, const char *function_name,
                const char *format, ...)

So revisit this part and enhance if needed.

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

No branches or pull requests

1 participant