From 9bd62966cacd53d017cf9b8a2d858e0ac726658b 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 --- external/agg | 2 +- external/airtaudio | 2 +- external/audio | 2 +- external/drain | 2 +- external/eaudiofx | 2 +- external/egami | 2 +- external/ege | 2 +- external/ejson | 2 +- external/enet | 2 +- external/esvg | 2 +- external/etk | 2 +- external/ewolsa | 2 +- external/exml | 2 +- external/river | 2 +- monk | 2 +- sample/001_HelloWord/appl/debug.h | 11 +---------- sample/0XX_CustomWidgets/appl/debug.h | 11 +---------- sample/examplewallpaper/appl/debug.h | 11 +---------- sources/ewol/debug.h | 11 +---------- 19 files changed, 19 insertions(+), 55 deletions(-) diff --git a/external/agg b/external/agg index f2a9ffcd..af62bc41 160000 --- a/external/agg +++ b/external/agg @@ -1 +1 @@ -Subproject commit f2a9ffcdb201285f6d449f573a8c58e130d09b0b +Subproject commit af62bc418a88687a8a14f768d7936c5b104d085f diff --git a/external/airtaudio b/external/airtaudio index 102a4e5c..d4c53a53 160000 --- a/external/airtaudio +++ b/external/airtaudio @@ -1 +1 @@ -Subproject commit 102a4e5ca569052f624c3112f7f68afa48acecfe +Subproject commit d4c53a53bf3faec2ba56bb126f01f8e253e446ed diff --git a/external/audio b/external/audio index 469a2650..ea6d4e7d 160000 --- a/external/audio +++ b/external/audio @@ -1 +1 @@ -Subproject commit 469a2650649165367e9272103633d8c00262b488 +Subproject commit ea6d4e7d58319551508e937973925e7430b7ca57 diff --git a/external/drain b/external/drain index 2bbbad46..5dff6c1e 160000 --- a/external/drain +++ b/external/drain @@ -1 +1 @@ -Subproject commit 2bbbad467f3f477bb8b41b7e370d5c1d1b9ca8ae +Subproject commit 5dff6c1e8ece1e6923d30a1aaaca5c85e1e09e9a diff --git a/external/eaudiofx b/external/eaudiofx index 6aac7ed0..fefcb647 160000 --- a/external/eaudiofx +++ b/external/eaudiofx @@ -1 +1 @@ -Subproject commit 6aac7ed0bbb3bdfa099f99f71778f16b43507508 +Subproject commit fefcb6479887fa133a1f97ecfe2c11b69d5b1004 diff --git a/external/egami b/external/egami index ff1239ee..28a67a89 160000 --- a/external/egami +++ b/external/egami @@ -1 +1 @@ -Subproject commit ff1239ee266d14d380d53cc7407d4e60c75b0db2 +Subproject commit 28a67a895c6ed998be2463d1a1bfcfbde4fce559 diff --git a/external/ege b/external/ege index be7abd40..a6fba88a 160000 --- a/external/ege +++ b/external/ege @@ -1 +1 @@ -Subproject commit be7abd40a14ac37ca2afc8e8e14bc7f6f2ce7ba5 +Subproject commit a6fba88a18190cb28ee747ffe30a8af7f615e503 diff --git a/external/ejson b/external/ejson index 1fbbe9c3..82670a79 160000 --- a/external/ejson +++ b/external/ejson @@ -1 +1 @@ -Subproject commit 1fbbe9c39c4642246dfe6d3dd8441e3fc58d8599 +Subproject commit 82670a7954dc6c8e9f38f0feb74495ef9817f1b2 diff --git a/external/enet b/external/enet index 5a108ecd..b1ad254e 160000 --- a/external/enet +++ b/external/enet @@ -1 +1 @@ -Subproject commit 5a108ecdac60de39af102d9c158a87ab1c9ee6b2 +Subproject commit b1ad254e0e8bf83dcae13cc0187151178eaf9f4e diff --git a/external/esvg b/external/esvg index d61f0b96..6c65d740 160000 --- a/external/esvg +++ b/external/esvg @@ -1 +1 @@ -Subproject commit d61f0b9607fa31a0a817c350889b7259f4d1d516 +Subproject commit 6c65d74094684130d4ffb438b6be96a6919257b0 diff --git a/external/etk b/external/etk index d0653f8e..10d51168 160000 --- a/external/etk +++ b/external/etk @@ -1 +1 @@ -Subproject commit d0653f8e2516f645aba88fd4b6aa6df3f29d488e +Subproject commit 10d5116851d51facbae446ad00b7de535c3b58ef diff --git a/external/ewolsa b/external/ewolsa index 3c605926..b45894a4 160000 --- a/external/ewolsa +++ b/external/ewolsa @@ -1 +1 @@ -Subproject commit 3c60592630d0595840773328355c3b90697528b9 +Subproject commit b45894a4f1ae8dc18ad7d8ac44a4897f80a2c4e1 diff --git a/external/exml b/external/exml index a9ed10a8..13d741b7 160000 --- a/external/exml +++ b/external/exml @@ -1 +1 @@ -Subproject commit a9ed10a8f08ffd0e84decc70e8e16861b4dd76c4 +Subproject commit 13d741b770f0b802cbfdecf132fddc099b087bf7 diff --git a/external/river b/external/river index 1c34c157..6622cd82 160000 --- a/external/river +++ b/external/river @@ -1 +1 @@ -Subproject commit 1c34c157ab4d8419bd8416fbb2896fb6dec0c74d +Subproject commit 6622cd823789eea38b88bae2bcf0ce1c6280df9a diff --git a/monk b/monk index 71ded394..2ff7730c 160000 --- a/monk +++ b/monk @@ -1 +1 @@ -Subproject commit 71ded394c57b4ed8954643eacde359c1a9bab52c +Subproject commit 2ff7730ca8a6ecf70fbd4bdd56cc500ba0292e9f diff --git a/sample/001_HelloWord/appl/debug.h b/sample/001_HelloWord/appl/debug.h index cad939e5..75fb1ca2 100644 --- a/sample/001_HelloWord/appl/debug.h +++ b/sample/001_HelloWord/appl/debug.h @@ -15,16 +15,7 @@ namespace appl { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define APPL_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(appl::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data) #define APPL_CRITICAL(data) APPL_BASE(1, data) #define APPL_ERROR(data) APPL_BASE(2, data) diff --git a/sample/0XX_CustomWidgets/appl/debug.h b/sample/0XX_CustomWidgets/appl/debug.h index 969e3a0e..06c068ec 100644 --- a/sample/0XX_CustomWidgets/appl/debug.h +++ b/sample/0XX_CustomWidgets/appl/debug.h @@ -14,16 +14,7 @@ namespace appl { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define APPL_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(appl::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data) #define APPL_CRITICAL(data) APPL_BASE(1, data) #define APPL_ERROR(data) APPL_BASE(2, data) diff --git a/sample/examplewallpaper/appl/debug.h b/sample/examplewallpaper/appl/debug.h index fcafd52a..1596a606 100644 --- a/sample/examplewallpaper/appl/debug.h +++ b/sample/examplewallpaper/appl/debug.h @@ -14,16 +14,7 @@ namespace appl { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define APPL_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(appl::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data) #define APPL_CRITICAL(data) APPL_BASE(1, data) #define APPL_ERROR(data) APPL_BASE(2, data) diff --git a/sources/ewol/debug.h b/sources/ewol/debug.h index 32c1c33e..45064bc2 100644 --- a/sources/ewol/debug.h +++ b/sources/ewol/debug.h @@ -14,16 +14,7 @@ namespace ewol { int32_t getLogId(); }; -// TODO : Review this problem of multiple intanciation of "std::stringbuf sb" -#define EWOL_BASE(info,data) \ - do { \ - if (info <= etk::log::getLevel(ewol::getLogId())) { \ - std::stringbuf sb; \ - std::ostream tmpStream(&sb); \ - tmpStream << data; \ - etk::log::logStream(ewol::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \ - } \ - } while(0) +#define EWOL_BASE(info,data) TK_LOG_BASE(ewol::getLogId(),info,data) #define EWOL_CRITICAL(data) EWOL_BASE(1, data) #define EWOL_ERROR(data) EWOL_BASE(2, data)