Poco

class RotateByIntervalStrategy

File Information

Library: Foundation
Package: Logging
Header: Poco/RotateStrategy.h

Description

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.

Inheritance

Direct Base Classes: RotateStrategy

All Base Classes: RotateStrategy

Member Summary

Member Functions: mustRotate

Inherited Functions: mustRotate

Constructors

RotateByIntervalStrategy

RotateByIntervalStrategy(
    const Timespan & span
);

Destructor

~RotateByIntervalStrategy virtual

~RotateByIntervalStrategy();

Member Functions

mustRotate virtual

bool mustRotate(
    LogFile * pFile
);

Securely control IoT edge devices from anywhere   Connect a Device