Commit ba919d59 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Logging: Don't append a newline when sending logs to an external logger

parent 0544c525
...@@ -33,22 +33,22 @@ class IostreamLogger : public ILogger ...@@ -33,22 +33,22 @@ class IostreamLogger : public ILogger
public: public:
virtual void Error(const std::string& msg) override virtual void Error(const std::string& msg) override
{ {
std::cout << "Error: " << msg; std::cout << "Error: " << msg << '\n';
} }
virtual void Warning(const std::string& msg) override virtual void Warning(const std::string& msg) override
{ {
std::cout << "Warning: " << msg; std::cout << "Warning: " << msg << '\n';
} }
virtual void Info(const std::string& msg) override virtual void Info(const std::string& msg) override
{ {
std::cout << "Info: " << msg; std::cout << "Info: " << msg << '\n';
} }
virtual void Debug(const std::string& msg) override virtual void Debug(const std::string& msg) override
{ {
std::cout << "Debug: " << msg; std::cout << "Debug: " << msg << '\n';
} }
}; };
......
...@@ -53,7 +53,6 @@ private: ...@@ -53,7 +53,6 @@ private:
{ {
std::stringstream stream; std::stringstream stream;
createMsg( stream, std::forward<Args>( args )... ); createMsg( stream, std::forward<Args>( args )... );
stream << "\n";
return stream.str(); return stream.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 to comment