From ba483a7b07a778ec4af81276757f8cf38ba50101 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 13 May 2018 00:07:11 -0500 Subject: [PATCH] Added std::string versions of error and info to Slic3r::Log --- xs/src/libslic3r/Log.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xs/src/libslic3r/Log.hpp b/xs/src/libslic3r/Log.hpp index 255b2e7a6..f105dac0d 100644 --- a/xs/src/libslic3r/Log.hpp +++ b/xs/src/libslic3r/Log.hpp @@ -18,10 +18,19 @@ public: std::wcerr << message << std::endl; } + static void error(std::string topic, std::string message) { + std::cerr << topic << " ERR" << ": "; + std::cerr << message << std::endl; + } + static void info(std::string topic, std::wstring message) { std::clog << topic << " INFO" << ": "; std::wclog << message << std::endl; } + static void info(std::string topic, std::string message) { + std::clog << topic << " INFO" << ": "; + std::clog << message << std::endl; + } static void warn(std::string topic, std::wstring message) { std::cerr << topic << " WARN" << ": ";