From ea6d4e7d58319551508e937973925e7430b7ca57 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 --- audio/debug.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/audio/debug.h b/audio/debug.h index 63d0762..4a0e0d4 100644 --- a/audio/debug.h +++ b/audio/debug.h @@ -13,15 +13,7 @@ namespace audio { int32_t getLogId(); }; // TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define AUDIO_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(audio::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(audio::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define AUDIO_BASE(info,data) TK_LOG_BASE(audio::getLogId(),info,data) #define AUDIO_CRITICAL(data) AUDIO_BASE(1, data) #define AUDIO_ERROR(data) AUDIO_BASE(2, data)