A wrapper logger class which automatically writes a service "prompt" to the log messages. Given a certain custom <prompt> string, every message <msg> will be print on output with the following format: $ [timestamp prompt] msg where the timestamp is made by date and hours. More...
#include <logs.h>
Public Member Functions | |
Logger (std::ostream &out, const std::string &msg) | |
template<typename T > | |
std::ostream & | operator<< (const T &message) |
A wrapper logger class which automatically writes a service "prompt" to the log messages. Given a certain custom <prompt> string, every message <msg> will be print on output with the following format: $ [timestamp prompt] msg where the timestamp is made by date and hours.