Library: Foundation
Package: Logging
Header: Poco/ArchiveStrategy.h
Description
A timestamp (YYYYMMDDhhmmssiii) is appended to archived log files.
Inheritance
Direct Base Classes: ArchiveStrategy
All Base Classes: ArchiveStrategy
Member Summary
Member Functions: archive, open
Inherited Functions: archive, close, compress, exists, moveFile, open, setPurgeCallback
Constructors
ArchiveByTimestampStrategy
ArchiveByTimestampStrategy() = default;
Destructor
~ArchiveByTimestampStrategy
~ArchiveByTimestampStrategy() override = default;
Member Functions
archive
LogFile * archive(
LogFile * pFile
) override;
Archives the file by appending the current timestamp to the file name. If the new file name exists, additionally a monotonic increasing number is appended to the log file name.
See also: Poco::ArchiveStrategy::archive()
open
LogFile * open(
LogFile * pFile
) override;
See also: Poco::ArchiveStrategy::open()