From bce4f191112ca4e13ce99653769d8a976ded5740 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 21 Jul 2018 15:55:30 -0500 Subject: [PATCH] Added ostream version of warn and info --- xs/src/libslic3r/Log.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xs/src/libslic3r/Log.hpp b/xs/src/libslic3r/Log.hpp index 353e23d50..4246d84a8 100644 --- a/xs/src/libslic3r/Log.hpp +++ b/xs/src/libslic3r/Log.hpp @@ -59,6 +59,14 @@ public: return std::cerr; } + static std::ostream& warn(std::string topic) { + std::cerr << topic << " WARN" << ": "; + return std::cerr; + } + static std::ostream& info(std::string topic) { + std::cerr << topic << " INFO" << ": "; + return std::cerr; + } }; /// Utility debug function to transform a std::vector of anything that