template class Poco::ArchiveByTimestampStrategy

Overview

A timestamp (YYYYMMDDhhmmssiii) is appended to archived log files. Moreā€¦

#include <ArchiveStrategy.h>

template <class DT>
class ArchiveByTimestampStrategy: public Poco::ArchiveStrategy
{
public:
    // methods

    virtual
    LogFile*
    archive(LogFile* pFile);
};

Inherited Members

public:
    // methods

    virtual
    LogFile*
    archive(LogFile* pFile) = 0;

    void
    compress(bool flag = true);

protected:
    // methods

    void
    moveFile(
        const std::string& oldName,
        const std::string& newName
        );

    bool
    exists(const std::string& name);

Detailed Documentation

A timestamp (YYYYMMDDhhmmssiii) is appended to archived log files.

Methods

virtual
LogFile*
archive(LogFile* pFile)

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.