Boost C++ Libraries: Ticket #11371: Logging: Advanced event log backend, Blank replaceable parameters https://svn.boost.org/trac10/ticket/11371 <p> 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). </p> <p> 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, <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/9292"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/9292</a> </p> <p> =======Event mapping section to be commented out====== </p> <blockquote> <p> sinks::event_log::custom_event_type_mapping&lt; severity_level &gt; 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-&gt;set_event_type_mapper(type_mapping); </p> </blockquote> <p> =======End of event mapping section to be commented out====== </p> <p> Environment: Windows Server 2008R2 (6.1.7601) with compilers from the Windows SDK 7.0 </p> <p> cl.exe version 15.00.30729.01 (VC9), target processor x64. Message compiler mc.exe version 1.12.7600. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11371 Trac 1.4.3 Eusebio Rufian-Zilbermann <eusebio@…> Tue, 02 Jun 2015 21:05:21 GMT <link>https://svn.boost.org/trac10/ticket/11371#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11371#comment:1</guid> <description> <p> Submitted duplicate due to a web browser issue. This is the same as <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11372" title="#11372: Bugs: Logging: Advanced event log backend, Blank replaceable parameters (closed: duplicate)">#11372</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>