diff --git a/xs/src/libslic3r/Log.hpp b/xs/src/libslic3r/Log.hpp index 0b3592eb8..d96dfa12a 100644 --- a/xs/src/libslic3r/Log.hpp +++ b/xs/src/libslic3r/Log.hpp @@ -51,6 +51,11 @@ public: std::cerr << message << std::endl; } + static std::ostream& debug(std::string topic) { + std::cerr << topic << " DEBUG" << ": "; + return std::cerr; + } + }; /// Utility debug function to transform a std::vector of anything that