Logger writter definition. More...
#include <writer.hpp>
Public Member Functions | |
| Writer (const anch::conf::Section &conf) | |
| virtual | ~Writer () |
| virtual void | write (const std::string &message)=0 |
Protected Member Functions | |
| std::string | format (const std::string &msg) |
Logger writter definition.
Provides format message function and define write function based on MDC.
| anch::log::Writer::Writer | ( | const anch::conf::Section & | conf | ) |
Writer constructor
| conf | the writer's configuration |
|
virtual |
Writer destructor
|
protected |
Format message according to writer message formatter
| msg | the message |
|
pure virtual |
Write message in the file
| message | Message to write |
Implemented in anch::log::ConsoleWriter, anch::log::FileWriter, anch::log::LowPriorityWriter, and anch::log::ThreadSafeWriter.