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

failed to log out DEBUG level when QUILL_ROOT_LOGGER_ONLY is defined #419

Closed
williamlfang opened this issue Apr 13, 2024 · 2 comments
Closed
Labels
question Further information is requested

Comments

@williamlfang
Copy link

2024-04-13_19-12

I tried to compile file 'example_quick_start.cpp' under folder 'examles'.
When macro QUILL_ROOT_LOGGER_ONLY is defined, anything of log level below DEBUG is missing. That's wired.

@williamlfang
Copy link
Author

I think it's something related to quill:get_logger() or quill:get_root_logger()

@odygrd
Copy link
Owner

odygrd commented May 16, 2024

default log level is INFO you need to change it first with

quill::get_root_logger()->set_log_level(quill::LogLevel::TraceL3);

Setting the log level is the handler as you are doing in line 22 is not the same. Setting it on the handler works like a filter, it filters out the messages when they hit the handler, but those messages never make it to the handler as they are dropped by the logger

@odygrd odygrd closed this as completed May 16, 2024
@odygrd odygrd added the question Further information is requested label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants