Boost C++ Libraries: Ticket #10524: Why does boost\log\sinks\text_file_backend.cpp prevents users from reusing its classes? https://svn.boost.org/trac10/ticket/10524 <p> Hello, guys! </p> <p> Today my colleague have encountered a problem. </p> <p> We're using boost logger in our application and it's really great boost library part. But, we need to change some of it's functionality. Actually, we need to add some lines of code in a method of collector class (for example, file_collector) </p> <p> I guess the right way of doing it is inheritance from file_collector and redefining those functions. But, since it's all declaration and definition is in text_file_backend.cpp file in an anonymous namespace, it's impossible. </p> <p> The only solution I see is to copy-and-paste entire file_collector class and rewrite some of it's methods content. </p> <p> Is there any reason that the entire class is in text_file_backend.cpp file or maybe I am missing something? </p> <p> Thank you for attention! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10524 Trac 1.4.3 Andrey Semashev Mon, 22 Sep 2014 16:01:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10524#comment:1 https://svn.boost.org/trac10/ticket/10524#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> There is the file::collector interface that you can implement and supply to the sink as the file collector. file_collector in text_file_backend.cpp is not designed to be extensible because the interface for the extension is not clear. This made the implementation simpler. </p> Ticket blacksmith33@… Mon, 22 Sep 2014 16:30:10 GMT <link>https://svn.boost.org/trac10/ticket/10524#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10524#comment:2</guid> <description> <p> Thank you for your advice and good luck on improving such an awesome boost library. </p> </description> <category>Ticket</category> </item> </channel> </rss>