Call through to underlying method for static Log methods

This commit is contained in:
Joseph Lenox 2018-11-22 23:03:58 -06:00
parent bd9b9cc416
commit b538f33459

View File

@ -90,62 +90,50 @@ public:
slic3r_log->fatal_error(topic, message); slic3r_log->fatal_error(topic, message);
} }
static void error(std::string topic, std::wstring message) { static void error(std::string topic, std::wstring message) {
std::cerr << topic << " ERR" << ": "; slic3r_log->error(topic, message);
std::wcerr << message << std::endl;
} }
static void error(std::string topic, std::string message) { static void error(std::string topic, std::string message) {
std::cerr << topic << " ERR" << ": "; slic3r_log->error(topic, message);
std::cerr << message << std::endl;
} }
static void info(std::string topic, std::wstring message) { static void info(std::string topic, std::wstring message) {
std::clog << topic << " INFO" << ": "; slic3r_log->info(topic, message);
std::wclog << message << std::endl;
} }
static void info(std::string topic, std::string message) { static void info(std::string topic, std::string message) {
std::clog << topic << " INFO" << ": "; slic3r_log->info(topic, message);
std::clog << message << std::endl;
} }
static void warn(std::string topic, std::wstring message) { static void warn(std::string topic, std::wstring message) {
std::cerr << topic << " WARN" << ": "; slic3r_log->warn(topic, message);
std::wcerr << message << std::endl;
} }
static void warn(std::string topic, std::string message) { static void warn(std::string topic, std::string message) {
std::cerr << topic << " WARN" << ": "; slic3r_log->warn(topic, message);
std::cerr << message << std::endl;
} }
static void debug(std::string topic, std::wstring message) { static void debug(std::string topic, std::wstring message) {
std::cerr << topic << " DEBUG" << ": "; slic3r_log->debug(topic, message);
std::wcerr << message << std::endl;
} }
static void debug(std::string topic, std::string message) { static void debug(std::string topic, std::string message) {
std::cerr << topic << " DEBUG" << ": "; slic3r_log->debug(topic, message);
std::cerr << message << std::endl;
} }
static std::ostream& error(std::string topic) { static std::ostream& error(std::string topic) {
std::cerr << topic << " ERR" << ": "; return slic3r_log->error(topic);
return std::cerr;
} }
static std::ostream& debug(std::string topic) { static std::ostream& debug(std::string topic) {
std::cerr << topic << " DEBUG" << ": "; return slic3r_log->debug(topic);
return std::cerr;
} }
static std::ostream& warn(std::string topic) { static std::ostream& warn(std::string topic) {
std::cerr << topic << " WARN" << ": "; return slic3r_log->warn(topic);
return std::cerr;
} }
static std::ostream& info(std::string topic) { static std::ostream& info(std::string topic) {
std::cerr << topic << " INFO" << ": "; return slic3r_log->info(topic);
return std::cerr;
} }
/// Unadorned ostream output for multiline constructions. /// Unadorned ostream output for multiline constructions.
static std::ostream& raw() { static std::ostream& raw() {
return std::cerr; return slic3r_log->raw();
} }
}; };