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 @@ ...@@ -4,7 +4,6 @@
#include <iostream> #include <iostream>
namespace PAG { namespace PAG {
// Clase que imprime a stderr y a un std::string
class Logger : public std::ostream { class Logger : public std::ostream {
public: public:
Logger() : buffer(), std::ostream(&buffer) {}; Logger() : buffer(), std::ostream(&buffer) {};
...@@ -20,8 +19,8 @@ namespace PAG { ...@@ -20,8 +19,8 @@ namespace PAG {
std::stringstream inner_full_log; std::stringstream inner_full_log;
public: public:
int sync() override { int sync() override {
std::cerr << str(); //std::cerr << str();
std::cerr.flush(); //std::cerr.flush();
inner_full_log << str(); 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