From dbc216e078395e8cc3dc3aed224875a0bcb80173 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Thu, 19 Jul 2018 22:03:07 -0500 Subject: [PATCH] Added a ostream version of Log::debug. --- xs/src/libslic3r/Log.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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