#include <lowPriorityWriter.hpp>
Public Member Functions | |
| LowPriorityWriter (const anch::conf::Section &conf) | |
| virtual | ~LowPriorityWriter () |
| virtual void | write (const std::string &message) override |
| void | startTreatment () |
| Public Member Functions inherited from anch::log::FileWriter | |
| FileWriter (const anch::conf::Section &conf) | |
| virtual | ~FileWriter () |
| Public Member Functions inherited from anch::log::Writer | |
| Writer (const anch::conf::Section &conf) | |
| virtual | ~Writer () |
Additional Inherited Members | |
| Protected Member Functions inherited from anch::log::FileWriter | |
| bool | rotate () const |
| void | rotateFiles () |
| Protected Member Functions inherited from anch::log::Writer | |
| std::string | format (const std::string &msg) |
| Protected Attributes inherited from anch::log::FileWriter | |
| std::ofstream * | _output |
| std::filesystem::path | _path |
| uint32_t | _maxSize |
| int | _maxIdx |
| int | _fileIdx |
File writer with QoS implementation to avoid performance lose when files are written.
| anch::log::LowPriorityWriter::LowPriorityWriter | ( | const anch::conf::Section & | conf | ) |
LowPriorityWriter constructor
| conf | the writer's configuration |
|
virtual |
LowPriorityWriter destructor
| void anch::log::LowPriorityWriter::startTreatment | ( | ) |
Start messages queue pooling
|
overridevirtual |
Write message in the file.
Rotate log file when needed.
| message | Message to write |
Reimplemented from anch::log::FileWriter.