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