Poco

class LogFile

File Information

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

Description

This class is used by FileChannel to work with a log file.

Inheritance

Direct Base Classes: LogFileImpl

All Base Classes: LogFileImpl

Member Summary

Member Functions: creationDate, path, size, write

Constructors

LogFile

LogFile(
    const std::string & path
);

Creates the LogFile.

Destructor

~LogFile

~LogFile();

Destroys the LogFile.

Member Functions

creationDate inline

Timestamp creationDate() const;

Returns the date and time the log file was created.

path inline

const std::string & path() const;

Returns the path given in the constructor.

size inline

UInt64 size() const;

Returns the current size in bytes of the log file.

write inline

void write(
    const std::string & text,
    bool flush = true
);

Writes the given text to the log file. If flush is true, the text will be immediately flushed to the file.

Securely control IoT edge devices from anywhere   Connect a Device