Logger ahora solo imprime por la pantalla y no por la terminal

parent 2574e379
Showing with 2 additions and 3 deletions
......@@ -4,7 +4,6 @@
#include <iostream>
namespace PAG {
// Clase que imprime a stderr y a un std::string
class Logger : public std::ostream {
public:
Logger() : buffer(), std::ostream(&buffer) {};
......@@ -20,8 +19,8 @@ namespace PAG {
std::stringstream inner_full_log;
public:
int sync() override {
std::cerr << str();
std::cerr.flush();
//std::cerr << str();
//std::cerr.flush();
inner_full_log << str();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment