![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
#include <lowPriorityWriter.hpp>
Public Member Functions | |
LowPriorityWriter (const std::string &fileName, const std::string &linePattern, int maxSize=0, int maxIndex=0) | |
LowPriorityWriter (std::ostream *output, const std::string &linePattern) | |
virtual | ~LowPriorityWriter () |
virtual void | write (const std::string &category, const anch::logger::Level &level, const std::string &message) |
void | startTreatment () |
![]() | |
Writer (const std::string &fileName, const std::string &linePattern, int maxSize=0, int maxIndex=0) | |
Writer (std::ostream *output, const std::string &linePattern) | |
virtual | ~Writer () |
Additional Inherited Members | |
![]() | |
bool | rotate () const |
void | rotateFiles () |
![]() | |
std::ostream * | _output |
anch::logger::formatter::MessageFormatter | _formatter |
File writer with QoS implementation to avoid performance lose when files are written.
LowPriorityWriter::LowPriorityWriter | ( | const std::string & | fileName, |
const std::string & | linePattern, | ||
int | maxSize = 0 , |
||
int | maxIndex = 0 |
||
) |
LowPriorityWriter constructor
fileName | The file name |
linePattern | The line pattern |
maxSize | The file maximum size before file rotation |
maxIndex | The maximum number of log files to keep |
LowPriorityWriter::LowPriorityWriter | ( | std::ostream * | output, |
const std::string & | linePattern | ||
) |
LowPriorityWriter constructor
output | The output to use |
linePattern | The line pattern |
|
virtual |
LowPriorityWriter destructor
void LowPriorityWriter::startTreatment | ( | ) |
Start messages queue pooling
Start messages queue poolingg
|
virtual |
Write message in the file
category | The logger category |
level | The message level |
message | Message to write |
Reimplemented from anch::logger::Writer.