Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10061: boost::log (boost logging): BOOST_LOG_FUNCTION works only in main thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-20 11:24:11
#10061: boost::log (boost logging): BOOST_LOG_FUNCTION works only in main thread
-------------------------------+---------------------
Reporter: anonymous | Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Comment (by andysem):
In order the scope names to be present in the output, the named_scope
attribute has to be present for the thread that emits the log record. That
is, either named_scope has to be added as a global attribute (i.e. with
add_global_attribure) or added as a thread-specific attribute in every
thread (e.g. by calling add_thread_attribute somewhere early in the thread
routine). Please verify that your code does this.
If your code adds the attribute properly then could you please provide a
small compilable example so that I'm able to reproduce the problem.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10061#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC