mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 03:32:03 +08:00
Added ostream version of error
This commit is contained in:
parent
7f7eb70dc9
commit
0436b83a22
@ -50,7 +50,10 @@ public:
|
|||||||
std::cerr << topic << " DEBUG" << ": ";
|
std::cerr << topic << " DEBUG" << ": ";
|
||||||
std::cerr << message << std::endl;
|
std::cerr << message << std::endl;
|
||||||
}
|
}
|
||||||
|
static std::ostream& error(std::string topic) {
|
||||||
|
std::cerr << topic << " ERR" << ": ";
|
||||||
|
return std::cerr;
|
||||||
|
}
|
||||||
static std::ostream& debug(std::string topic) {
|
static std::ostream& debug(std::string topic) {
|
||||||
std::cerr << topic << " DEBUG" << ": ";
|
std::cerr << topic << " DEBUG" << ": ";
|
||||||
return std::cerr;
|
return std::cerr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user