Added generic error message to Log; print error type to console.

This commit is contained in:
Joseph Lenox 2018-05-05 17:36:20 -05:00
parent a620e2ee13
commit 574f77ec16

View File

@ -8,17 +8,21 @@ namespace Slic3r {
class Log {
public:
static void fatal_error(std::string topic, std::wstring message) {
std::cerr << topic << ": ";
std::cerr << topic << " FERR" << ": ";
std::wcerr << message << std::endl;
}
static void error(std::string topic, std::wstring message) {
std::cerr << topic << " ERR" << ": ";
std::wcerr << message << std::endl;
}
static void info(std::string topic, std::wstring message) {
std::clog << topic << ": ";
std::clog << topic << " INFO" << ": ";
std::wclog << message << std::endl;
}
static void warn(std::string topic, std::wstring message) {
std::cerr << topic << ": ";
std::cerr << topic << " WARN" << ": ";
std::wcerr << message << std::endl;
}