From cf51ab71a25cbb60ebcf13edd4b7413c23264128 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 17 Mar 2022 15:53:45 +0100 Subject: input basics --- src/debug/Log.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/debug/Log.cpp') 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 +#include 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); } -- cgit v1.2.3