From 80e904aa7cab7980249cf127573eec5b12b3e01d Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Sep 2021 21:04:56 +0200 Subject: Added ZEN_CONSOLE macro, which logs the output directly to console --- zencore/include/zencore/logging.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h index 8e6b3a244..e98509bf8 100644 --- a/zencore/include/zencore/logging.h +++ b/zencore/include/zencore/logging.h @@ -80,3 +80,10 @@ using zen::Log; using namespace std::literals; \ Log().critical(fmtstr##sv, __VA_ARGS__); \ } while (false) + +#define ZEN_CONSOLE(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ + ConsoleLog().info(fmtstr##sv, __VA_ARGS__); \ + } while (false) -- cgit v1.2.3