Boost C++ Libraries: Ticket #8840: Missing severity level string in log records https://svn.boost.org/trac10/ticket/8840 <p> I have been trying to get some assistance on this issue from the Boost Users mailing list for more than a week but I have not had a reply that resolved the issue thus I have decided to log it as a bug. </p> <p> The issue I am having is that the severity level string is not appearing in the log records generated from my test program. </p> <p> I am attaching my complete test program, settings file and sample result file. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8840 Trac 1.4.3 lcarreon@… Thu, 18 Jul 2013 00:12:48 GMT attachment set https://svn.boost.org/trac10/ticket/8840 https://svn.boost.org/trac10/ticket/8840 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_logging.cpp</span> </li> </ul> <p> Contain my complete test program </p> Ticket lcarreon@… Thu, 18 Jul 2013 00:18:14 GMT attachment set https://svn.boost.org/trac10/ticket/8840 https://svn.boost.org/trac10/ticket/8840 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">LogSettings.txt</span> </li> </ul> <p> The settings file used by my test program </p> Ticket lcarreon@… Thu, 18 Jul 2013 00:19:01 GMT attachment set https://svn.boost.org/trac10/ticket/8840 https://svn.boost.org/trac10/ticket/8840 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_logging_0.log</span> </li> </ul> <p> The resulting log records from my test program </p> Ticket Andrey Semashev Thu, 18 Jul 2013 06:30:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8840#comment:1 https://svn.boost.org/trac10/ticket/8840#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">fixed</span> </li> </ul> <p> You need to register your severity attribute in the library before parsing the settings file. See <a href="http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/extension/settings.html#log.extension.settings.adding_support_for_user_defined_types_to_the_formatter_parser">here</a>. The attribute may have to be registered both for formatter and filter parsers, if you want to filter records based on severity level. </p> Ticket lcarreon@… Thu, 18 Jul 2013 08:53:36 GMT <link>https://svn.boost.org/trac10/ticket/8840#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8840#comment:2</guid> <description> <p> OK, this is working but I had to add a stream input/extraction function and then I had to add the following two lines before loading the settings from the settings file: </p> <blockquote> <p> logging::register_simple_formatter_factory&lt;ESeverityLevel, char&gt;("Severity"); logging::register_simple_filter_factory&lt;ESeverityLevel, char&gt;("Severity"); </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 07 Dec 2016 15:28:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8840#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8840#comment:3</guid> <description> <p> It would be really great to put this note in the documentation when talking about the severity levels output and formats, there are people loosing like 2 days because it is not clear right away. </p> </description> <category>Ticket</category> </item> </channel> </rss>