Start a simple Slic3r::Log to collect all of the debugging prints to a single area.

Upgrade backend to boost::log as needed.
This commit is contained in:
Joseph Lenox 2018-04-28 18:13:51 -05:00 committed by Joseph Lenox
parent b419d06cb4
commit c1649c4dcf

24
xs/src/libslic3r/Log.hpp Normal file
View File

@ -0,0 +1,24 @@
#ifndef slic3r_LOG_HPP
#define slic3r_LOG_HPP
#include <string>
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