From 6c65d74094684130d4ffb438b6be96a6919257b0 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 --- esvg/debug.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/esvg/debug.h b/esvg/debug.h index a4e2875..a1da058 100644 --- a/esvg/debug.h +++ b/esvg/debug.h @@ -14,16 +14,7 @@ namespace esvg { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define SVG_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(esvg::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(esvg::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define SVG_BASE(info,data) TK_LOG_BASE(esvg::getLogId(),info,data) #define SVG_CRITICAL(data) SVG_BASE(1, data) #define SVG_ERROR(data) SVG_BASE(2, data)