quill icon indicating copy to clipboard operation
quill copied to clipboard

failed to log out DEBUG level when QUILL_ROOT_LOGGER_ONLY is defined

Open williamlfang opened this issue 10 months ago • 1 comments

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 avatar Apr 13 '24 11:04 williamlfang

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

williamlfang avatar Apr 20 '24 08:04 williamlfang

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 avatar May 16 '24 00:05 odygrd