From 13d741b770f0b802cbfdecf132fddc099b087bf7 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 25 Mar 2015 21:14:12 +0100 Subject: [PATCH] [DEV] update Log interafce --- exml/debug.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/exml/debug.h b/exml/debug.h index 375622e..4ba1e70 100644 --- a/exml/debug.h +++ b/exml/debug.h @@ -14,16 +14,7 @@ namespace exml { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define EXML_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(exml::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(exml::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define EXML_BASE(info,data) TK_LOG_BASE(exml::getLogId(),info,data) #define EXML_CRITICAL(data) EXML_BASE(1, data) #define EXML_ERROR(data) EXML_BASE(2, data)