18 Jan
2019
18 Jan
'19
10:16 a.m.
On 1/18/19 12:41 PM, hh h wrote:
If you want a severity level attribute, that should be severity_channel_logger_mt< ServerityLevel_t >
I added ServerityLevel_t to the severity_channel_logger_mt, but still couldn't printed out the severity, otherwise, seems everything works.
If you're using boost::log::trivial::severity keyword in the formatter then that is the problem. This keyword corresponds to the boost::log::trivial::severity_level enum for severity levels. For custom enums, custom keywords should be defined and used. https://www.boost.org/doc/libs/1_69_0/libs/log/doc/html/log/detailed/express... Also, please don't top-post. Our discussion guidelines are described here: https://www.boost.org/community/policy.html