Subject: [Boost-bugs] [Boost C++ Libraries] #11371: Logging: Advanced event log backend, Blank replaceable parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-02 20:41:09
#11371: Logging: Advanced event log backend, Blank replaceable parameters
---------------------------------------------------+---------------------
Reporter: Eusebio Rufian-Zilbermann <eusebio@â¦> | Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.57.0 | Severity: Problem
Keywords: |
---------------------------------------------------+---------------------
Overview: I'm trying to use Boost Logging for sending events to the
Windows event log. In the event log the replaceable parameters are showing
up as empty strings, E.g., for a message of "Operation finished
successfully in %1 seconds." the event log will simply show "Operation
finished successfully in seconds." and the value for %1 is lost (instead
of replaced into the string).
Code: I reproduced this problem on the example provided in the boost
distribution itself (libs\log\example\event_log), after commenting out the
custom event mapping section, to work around the issue described in ticket
9292, https://svn.boost.org/trac/boost/ticket/9292
=======Event mapping section to be commented out======
sinks::event_log::custom_event_type_mapping< severity_level >
type_mapping("Severity");
type_mapping[normal] =
sinks::event_log::make_event_type(MY_SEVERITY_INFO);
type_mapping[warning] =
sinks::event_log::make_event_type(MY_SEVERITY_WARNING);
type_mapping[error] =
sinks::event_log::make_event_type(MY_SEVERITY_ERROR);
backend->set_event_type_mapper(type_mapping);
=======End of event mapping section to be commented out======
Environment: Windows Server 2008R2 (6.1.7601) with compilers from the
Windows SDK 7.0
cl.exe version 15.00.30729.01 (VC9), target processor x64.
Message compiler mc.exe version 1.12.7600.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11371> 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:18 UTC