Boost C++ Libraries: Ticket #11372: Logging: Advanced event log backend, Blank replaceable parameters https://svn.boost.org/trac10/ticket/11372 <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/11372 Trac 1.4.3 Andrey Semashev Tue, 02 Jun 2015 21:49:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11372#comment:1 https://svn.boost.org/trac10/ticket/11372#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicates <a class="new ticket" href="https://svn.boost.org/trac10/ticket/11371" title="#11371: Bugs: Logging: Advanced event log backend, Blank replaceable parameters (new)">#11371</a>. </p> Ticket