Added ostream version of warn and info

This commit is contained in:
Joseph Lenox 2018-07-21 15:55:30 -05:00
parent 0436b83a22
commit bce4f19111

View File

@ -59,6 +59,14 @@ public:
return std::cerr;
}
static std::ostream& warn(std::string topic) {
std::cerr << topic << " WARN" << ": ";
return std::cerr;
}
static std::ostream& info(std::string topic) {
std::cerr << topic << " INFO" << ": ";
return std::cerr;
}
};
/// Utility debug function to transform a std::vector of anything that