[Boost-bugs] [Boost C++ Libraries] #10524: Why does boost\log\sinks\text_file_backend.cpp prevents users from reusing its classes?

Subject: [Boost-bugs] [Boost C++ Libraries] #10524: Why does boost\log\sinks\text_file_backend.cpp prevents users from reusing its classes?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-22 15:45:40


#10524: Why does boost\log\sinks\text_file_backend.cpp prevents users from reusing
its classes?
---------------------------------------------+---------------------
 Reporter: blacksmith33@… | Owner: andysem
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: logger; inheritance; code reuse |
---------------------------------------------+---------------------
 Hello, guys!

 Today my colleague have encountered a problem.

 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)

 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.

 The only solution I see is to copy-and-paste entire file_collector class
 and rewrite some of it's methods content.

 Is there any reason that the entire class is in text_file_backend.cpp file
 or maybe I am missing something?

 Thank you for attention!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10524>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC