Log file writer. More...
#include <termWriter.hpp>
Public Member Functions | |
| ConsoleWriter (const anch::conf::Section &conf) | |
| virtual | ~ConsoleWriter () |
| virtual void | write (const std::string &message) |
| 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::Writer | |
| std::string | format (const std::string &msg) |
Log file writer.
Manage file writer with file rotation on size, date and max rotate index
| anch::log::ConsoleWriter::ConsoleWriter | ( | const anch::conf::Section & | conf | ) |
ConsoleWriter constructor
| conf | the writer's configuration |
|
virtual |
ConsoleWriter destructor
|
virtual |
Write message in the file.
Rotate log file when needed.
| message | Message to write |
Implements anch::log::Writer.