quill
quill copied to clipboard
failed to log out DEBUG level when QUILL_ROOT_LOGGER_ONLY is defined
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.
I think it's something related to quill:get_logger() or quill:get_root_logger()
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