diff options
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 65ba67c4..0acecb04 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -2,6 +2,7 @@ #include "../defines.hpp" #include <fstream> +#include <iostream> void Debug::log(LogLevel level, const char* fmt, ...) { va_list args; @@ -37,5 +38,8 @@ void Debug::log(LogLevel level, const char* fmt, ...) { ofs.close(); + // log it to the stdout too. + std::cout << buf << "\n"; + va_end(args); } |
