Added ostream version of error

This commit is contained in:
Joseph Lenox 2018-07-21 08:58:23 -05:00
parent 7f7eb70dc9
commit 0436b83a22

View File

@ -50,7 +50,10 @@ public:
std::cerr << topic << " DEBUG" << ": ";
std::cerr << message << std::endl;
}
static std::ostream& error(std::string topic) {
std::cerr << topic << " ERR" << ": ";
return std::cerr;
}
static std::ostream& debug(std::string topic) {
std::cerr << topic << " DEBUG" << ": ";
return std::cerr;