Commit 214e8245 authored by Dominik Charousset's avatar Dominik Charousset

Respect new output-specific exclude lists

parent 2131e2cb
...@@ -527,13 +527,18 @@ void logger::run() { ...@@ -527,13 +527,18 @@ void logger::run() {
void logger::handle_file_event(const event& x) { void logger::handle_file_event(const event& x) {
// Print to file if available. // Print to file if available.
if (file_ && x.level <= file_verbosity()) if (file_ && x.level <= file_verbosity()
&& none_of(file_filter_.begin(), file_filter_.end(),
[&x](string_view name) { return name == x.category_name; }))
render(file_, file_format_, x); render(file_, file_format_, x);
} }
void logger::handle_console_event(const event& x) { void logger::handle_console_event(const event& x) {
if (x.level > console_verbosity()) if (x.level > console_verbosity())
return; return;
if (std::any_of(console_filter_.begin(), console_filter_.end(),
[&x](string_view name) { return name == x.category_name; }))
return;
if (cfg_.console_coloring) { if (cfg_.console_coloring) {
switch (x.level) { switch (x.level) {
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment