Opened 9 years ago

Closed 8 years ago

#9320 closed Bugs (fixed)

stat_collector example does not work

Reported by: John.D.Mairs@… Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.54.0 Severity: Problem
Keywords: extension_stat_collector Cc:

Description

I'm using boost 1.54, VS2012 Update3 on Windows 7 SP1. I can step into logging::add_value("Sent", 100u) and see the constructor for add_value_manip work correctly with m_value = 100 and m_id = 8. By the time basic_record_ostream.operator<< is called the manip parameter has the m_value at 2130567168. Incorrect values are of course found in the stat_collector.consume method as well as being written out to csv file.

This example code is found in the html doc for boost log Minimalistic sink backend with code under libs\log\example\doc\extension_stat_collector.cpp

Change History (2)

comment:1 by Andrey Semashev, 9 years ago

Please, verify if it works as expected with Boost 1.55 or trunk.

comment:2 by Andrey Semashev, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.