Custom Archive Strategy

Discussion of ideas for features and new projects based on POCO.
gandriotakis
Posts: 42
Joined: 02 Dec 2011, 20:45

Custom Archive Strategy

Postby gandriotakis » 08 Jun 2015, 20:25

Poco appears to be limited to the predefined archive strategies (ArchiveByNumberStrategy and ArchiveByTimestampStrategy). It would be nice to be able to add a custom strategy to a FileChannel. One possible mechanism would be to add ArchiveStrategy to the LoggingRegistry. By default the existing strategies would be available but a user defined strategy derived from ArchiveStrategy could be registered and then used. FileChannel::setArchive would then get the strategy from the registry. The custom strategy could then override the virtual archive method to implement the custom strategy. An additional enhancement would be to permit a custom RotationStrategy.

gandriotakis
Posts: 42
Joined: 02 Dec 2011, 20:45

Re: Custom Archive Strategy

Postby gandriotakis » 08 Jun 2015, 20:29

FYI, I do not have the resources to implement and test on multiple platforms so I am not in a position to add this.


Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 3 guests

cron