Re: [Boost-bugs] [Boost C++ Libraries] #12402: knowing the current filename used by a boost.log text_file_backend

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12402: knowing the current filename used by a boost.log text_file_backend
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-20 00:43:38


#12402: knowing the current filename used by a boost.log text_file_backend
----------------------------------------------+----------------------------
  Reporter: Philip Miller <philip.miller@…> | Owner: andysem
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: log
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
                                              | text_file_backend
----------------------------------------------+----------------------------

Comment (by andysem):

 There is no API to obtain the current file name. You could try
 implementing your own log file collector. Basically, the collector
 implemented in Boost.Log does not rename the file, it only moves it to the
 target directory, which you specify when you create the collector. So by
 implementing `collector::store_file` you should be able to know the full
 path to the last rotated log file. The currently written file name is
 inaccessible, you'll have to patch the library to change that.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12402#comment:1>
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:20 UTC