29 #include "../utils/utils.h"
46 Logger(std::ostream& out,
const std::string& msg) : outputStream(out), promptMessage(msg) {}
49 std::ostream& operator<<(
const T& message)
57 std::ostream& outputStream;
58 const std::string promptMessage;
std::string getCurrentTime()
Definition: utils.cpp:177
A wrapper logger class which automatically writes a service "prompt" to the log messages. Given a certain custom
string, every message will be print on output with the following format: $ [timestamp prompt] msg where the timestamp is made by date and hours. Definition: logs.h:41