From 6cddc9b9be6daa91e6f13cf1760cf0a610842449 Mon Sep 17 00:00:00 2001 From: D-AIRY <admin@ds-servers.com> Date: Tue, 1 Dec 2020 11:20:32 +0300 Subject: [PATCH] Added Log* defines --- source/gdefines.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/gdefines.h b/source/gdefines.h index 295e4c360..5972803b3 100644 --- a/source/gdefines.h +++ b/source/gdefines.h @@ -324,6 +324,10 @@ inline void LibReport(int iLevel, const char *szFormat, ...) DefReport(iLevel, SX_LIB_NAME, buf); } +#define LogInfo(...) LibReport(REPORT_MSG_LEVEL_NOTICE, __VA_ARGS__) +#define LogWarning(...) LibReport(REPORT_MSG_LEVEL_WARNING, __VA_ARGS__) +#define LogError(...) LibReport(REPORT_MSG_LEVEL_ERROR, __VA_ARGS__) +#define LogFatal(...) LibReport(REPORT_MSG_LEVEL_FATAL, __VA_ARGS__) #define SX_MAX_THREAD_COUNT 64 -- GitLab