Opened 9 years ago

Closed 7 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:

Description

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 by Erich Keane <erich.keane@…>, 7 years ago

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 by anonymous, 7 years ago

I would like this.

comment:3 by Erich Keane, 7 years ago

I've contributed a pull-request for this one here: https://github.com/boostorg/log/pull/24

comment:4 by Andrey Semashev, 7 years ago

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