Opened 6 years ago

Closed 3 years ago

#8746 closed Feature Requests (fixed)

Boot log sink file collector max number of files threshold

Reported by: semenov.nick@… Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.54.0 Severity: Showstopper
Keywords: boost log file collector Cc:


Need to introduce keyword::max_files for sinks::file::make_collector() in order to limit number of files in the collector's target directory, similarly to keywords::max_size. For instance, when rotating files daily, one should be able to specify number of days to keep the files for.

Change History (4)

comment:1 Changed 3 years ago by Erich Keane <erich.keane@…>

This is one that has interest to me as well, and I think I can implement it if it would be well received.

I've not submitted a patch to boost before, but it seems that I can fairly simply create a .patch file to get this going.

andysem or whoever is paying attention, is this a feature that would be well received/regarded? I see it is 2 years old, so I am curious if it has been sitting like this for good reason?

comment:2 Changed 3 years ago by anonymous

I would like this.

comment:3 Changed 3 years ago by Erich Keane

I've contributed a pull-request for this one here:

comment:4 Changed 3 years ago by Andrey Semashev

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