Re: [Boost-bugs] [Boost C++ Libraries] #10238: syslog pri part error in custom severity (init_from_stream)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10238: syslog pri part error in custom severity (init_from_stream)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-24 08:53:16


#10238: syslog pri part error in custom severity (init_from_stream)
-------------------------------+---------------------
  Reporter: anonymous | Owner: andysem
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: log
   Version: Boost 1.55.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+---------------------
Changes (by andysem):

 * status: new => closed
 * resolution: => fixed

Comment:

 This is a known limitation. The library needs a severity mapping to
 convert from your enum to syslog::level values. When the library is
 initialized from file or settings it does not know about your enum and
 currently assumes the severity attribute values to be ints. When you pass
 your enum as the severity levels the library is not able to extract it
 from log records and defaults to the 'info' level.

 To work around the problem you'll have to create the sink yourself and
 specify the mapping of your enum to syslog severity levels (see the
 [http://www.boost.org/doc/libs/1_55_0/libs/log/doc/html/log/detailed/sink_backends.html#log.detailed.sink_backends.syslog
 example]). In order to integrate with the settings parser, your code that
 creates the sink has to be registered as a sink factory as described
 [http://www.boost.org/doc/libs/1_55_0/libs/log/doc/html/log/extension/settings.html#log.extension.settings.adding_support_for_user_defined_sinks
 here].

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10238#comment:3>
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