Boost logo

Boost :

Subject: [boost] boost log: attributes and different loggers
From: Dirk Griffioen (dirk.griffioen_at_[hidden])
Date: 2010-06-10 06:19:30


Hi,

I am trying to use 2 loggers
- 1 severity logger
- 1 'normal' logger

However, when I add

sink->set_filter(flt::attr< severity_level >("Severity") >= level);

to the severity logger sink and try to use the second logger I get:

terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::log_mt_posix::missing_value>
>'
   what(): Requested attribute value not found

The second logger has no formatter:

backend->set_formatter(fmt::stream << fmt::message());

Nor has it any attribute.

I tried different solutions, but nothing works - what am I missing?

Best, Dirk


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