|  | AnCH Framework
    0.1
    Another C++ Hack Framework | 
#include <writer.hpp>
| Public Member Functions | |
| 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 () | 
| virtual void | write (const std::string &category, const anch::logger::Level &level, const std::string &message) | 
| Protected Member Functions | |
| bool | rotate () const | 
| void | rotateFiles () | 
| Protected Attributes | |
| std::ostream * | _output | 
| anch::logger::formatter::MessageFormatter | _formatter | 
File writer which is not thread safe
| Writer::Writer | ( | const std::string & | fileName, | 
| const std::string & | linePattern, | ||
| int | maxSize = 0, | ||
| int | maxIndex = 0 | ||
| ) | 
Writer 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 | 
| Writer::Writer | ( | std::ostream * | output, | 
| const std::string & | linePattern | ||
| ) | 
Writer constructor
| output | The output to use | 
| linePattern | The line pattern | 
| 
 | virtual | 
Writer destructor
| 
 | inlineprotected | 
Check if file has to be rotate according to configuration and its size
| 
 | protected | 
Rotate files when current reachs the maximum file length.
| 
 | virtual | 
Write message in the file
| category | The logger category | 
| level | The message level | 
| message | Message to write | 
Reimplemented in anch::logger::LowPriorityWriter, and anch::logger::ThreadSafeWriter.
| 
 | protected | 
Message formatter
| 
 | protected | 
Ouput file stream
 1.8.11
 1.8.11