class Poco::RotateByIntervalStrategy
Overview
The file is rotated when the log file exceeds a given age. Moreā¦
#include <RotateStrategy.h> class RotateByIntervalStrategy: public Poco::RotateStrategy { public: // construction RotateByIntervalStrategy(const Timespan& span); // methods virtual bool mustRotate(LogFile* pFile); };
Inherited Members
public: // methods virtual bool mustRotate(LogFile* pFile) = 0;
Detailed Documentation
The file is rotated when the log file exceeds a given age.
For this to work reliably across all platforms and file systems (there are severe issues on most platforms finding out the real creation date of a file), the creation date of the file is written into the log file as the first entry.
Methods
virtual bool mustRotate(LogFile* pFile)
Returns true if the given log file must be rotated, false otherwise.