Re: [Boost-bugs] [Boost C++ Libraries] #13257: Log attributes passed as arguments to open_record are ignored

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13257: Log attributes passed as arguments to open_record are ignored
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-13 00:13:38


#13257: Log attributes passed as arguments to open_record are ignored
-------------------------------------+-------------------------------------
  Reporter: Thomas M. Bernal | Owner: Andrey Semashev
  <tbernal@…> |
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: log
   Version: Boost 1.64.0 | Severity: Showstopper
Resolution: | Keywords: open_record
                                     | basic_logger open_record_unlocked
-------------------------------------+-------------------------------------

Comment (by Thomas M. Bernal <tbernal@…>):

 It seems the severity_logger cheats!

 {{{
 #!cpp
     record open_record_unlocked(ArgsT const& args)
     {
         m_SeverityAttr.set_value(args[keywords::severity |
 m_DefaultSeverity]);
         return base_type::open_record_unlocked(args);
     }
 }}}

 So you are telling me that if I want to add attributes in the call to
 {{{open_record}}} that I need to implement my own logger and cheat? This
 is not the way the library appears to be in the tutorial. The tutorial
 makes it seem that anything passed into {{{open_record}}} will get
 combined with the logger's attributes before being sent to the core. This
 is not only very deceiving but highly cryptic.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13257#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-10-13 00:19:35 UTC