diff --git a/xs/src/libslic3r/Log.hpp b/xs/src/libslic3r/Log.hpp new file mode 100644 index 000000000..554b560a2 --- /dev/null +++ b/xs/src/libslic3r/Log.hpp @@ -0,0 +1,24 @@ +#ifndef slic3r_LOG_HPP +#define slic3r_LOG_HPP + +#include + +namespace Slic3r { + +class Log { +public: + static void fatal_error(std::string topic, std::wstring message) { + std::cerr << topic << ": "; + std::wcerr << message << std::endl; + } + + static void info(std::string topic, std::wstring message) { + std::clog << topic << ": "; + std::wclog << message << std::endl; + } + +}; + +} + +#endif // slic3r_LOG_HPP