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


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
   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, gregod at, cpdaniel at, john at