class Poco::PurgeByAgeStrategy
Overview
This purge strategy purges all files that have exceeded a given age (given in seconds). More…
#include <PurgeStrategy.h> class PurgeByAgeStrategy: public Poco::PurgeStrategy { public: // construction PurgeByAgeStrategy(const Timespan& age); // methods virtual void purge(const std::string& path); };
Detailed Documentation
This purge strategy purges all files that have exceeded a given age (given in seconds).
Methods
virtual void purge(const std::string& path)
Purges archived log files.
The path to the current “hot” log file is given. To find archived log files, look for files with a name consisting of the given path plus any suffix (e.g., .1, .20050929081500, .1.gz). A list of archived files can be obtained by calling the list() method.