[log] ThreadID attribute is empty

5 Dec
2013
5 Dec
'13
8:54 a.m.
Hello, I'm formatting a sink like this: sink->set_formatter ( expr::stream << expr::attr<boost::posix_time::ptime>("TimeStamp") << " T:" << expr::attr<boost::thread::id>("ThreadID") << ":" << expr::smessage ); logging::add_common_attributes(); For some reason ThreadID is empty. I tried to register the attribute explicitly: logging::core::get()->add_global_attribute("ThreadID", logging::attributes::current_thread_id()); but it doesn't help. The program is mutithreaded and linked with mt static libs. Thanks.
4202
Age (days ago)
4202
Last active (days ago)
0 comments
1 participants
participants (1)
-
Igor R