aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-16 21:04:56 +0200
committerStefan Boberg <[email protected]>2021-09-16 21:04:56 +0200
commit80e904aa7cab7980249cf127573eec5b12b3e01d (patch)
tree95d0752e3e9ee8a5bd633ce33e59774fda2113d5 /zencore/include
parentAdded ProcessMonitor class, which is used to monitor a number of sponsor proc... (diff)
downloadzen-80e904aa7cab7980249cf127573eec5b12b3e01d.tar.xz
zen-80e904aa7cab7980249cf127573eec5b12b3e01d.zip
Added ZEN_CONSOLE macro, which logs the output directly to console
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/logging.h7
1 files changed, 7 insertions, 0 deletions
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)