class Poco::ArchiveByNumberStrategy

Overview

A monotonic increasing number is appended to the log file name. Moreā€¦

#include <ArchiveStrategy.h>

class ArchiveByNumberStrategy: 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 monotonic increasing number is appended to the log file name.

The most recent archived file always has the number zero.

Methods

virtual
LogFile*
archive(LogFile* pFile)

Renames the given log file for archiving and creates and returns a new log file.

The given LogFile object is deleted.