Boost logo

Boost :

Subject: Re: [boost] Boost log issues and workarounds
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2019-01-18 21:28:06


On 1/19/19 12:16 AM, hh h wrote:
>> custom keywords should be defined and used.
>
> Thanks Andrey, that fixed the problem.
>
> The last issue is to set log level, I tried following statements, neither works:
>
> auto filter = boost::log::filter(boost::log::trivial::severity >=
> ServerityLevel_t::ERROR);
> boost::log::core::get()->set_filter(filter);

Same as with formatters, you need to use your custom keyword in the
filter expression.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk