[DEV] update Log interafce
This commit is contained in:
parent
66364ff4ea
commit
9bd62966ca
2
external/agg
vendored
2
external/agg
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f2a9ffcdb201285f6d449f573a8c58e130d09b0b
|
Subproject commit af62bc418a88687a8a14f768d7936c5b104d085f
|
2
external/airtaudio
vendored
2
external/airtaudio
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 102a4e5ca569052f624c3112f7f68afa48acecfe
|
Subproject commit d4c53a53bf3faec2ba56bb126f01f8e253e446ed
|
2
external/audio
vendored
2
external/audio
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 469a2650649165367e9272103633d8c00262b488
|
Subproject commit ea6d4e7d58319551508e937973925e7430b7ca57
|
2
external/drain
vendored
2
external/drain
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 2bbbad467f3f477bb8b41b7e370d5c1d1b9ca8ae
|
Subproject commit 5dff6c1e8ece1e6923d30a1aaaca5c85e1e09e9a
|
2
external/eaudiofx
vendored
2
external/eaudiofx
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 6aac7ed0bbb3bdfa099f99f71778f16b43507508
|
Subproject commit fefcb6479887fa133a1f97ecfe2c11b69d5b1004
|
2
external/egami
vendored
2
external/egami
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ff1239ee266d14d380d53cc7407d4e60c75b0db2
|
Subproject commit 28a67a895c6ed998be2463d1a1bfcfbde4fce559
|
2
external/ege
vendored
2
external/ege
vendored
@ -1 +1 @@
|
|||||||
Subproject commit be7abd40a14ac37ca2afc8e8e14bc7f6f2ce7ba5
|
Subproject commit a6fba88a18190cb28ee747ffe30a8af7f615e503
|
2
external/ejson
vendored
2
external/ejson
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 1fbbe9c39c4642246dfe6d3dd8441e3fc58d8599
|
Subproject commit 82670a7954dc6c8e9f38f0feb74495ef9817f1b2
|
2
external/enet
vendored
2
external/enet
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 5a108ecdac60de39af102d9c158a87ab1c9ee6b2
|
Subproject commit b1ad254e0e8bf83dcae13cc0187151178eaf9f4e
|
2
external/esvg
vendored
2
external/esvg
vendored
@ -1 +1 @@
|
|||||||
Subproject commit d61f0b9607fa31a0a817c350889b7259f4d1d516
|
Subproject commit 6c65d74094684130d4ffb438b6be96a6919257b0
|
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
|||||||
Subproject commit d0653f8e2516f645aba88fd4b6aa6df3f29d488e
|
Subproject commit 10d5116851d51facbae446ad00b7de535c3b58ef
|
2
external/ewolsa
vendored
2
external/ewolsa
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 3c60592630d0595840773328355c3b90697528b9
|
Subproject commit b45894a4f1ae8dc18ad7d8ac44a4897f80a2c4e1
|
2
external/exml
vendored
2
external/exml
vendored
@ -1 +1 @@
|
|||||||
Subproject commit a9ed10a8f08ffd0e84decc70e8e16861b4dd76c4
|
Subproject commit 13d741b770f0b802cbfdecf132fddc099b087bf7
|
2
external/river
vendored
2
external/river
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 1c34c157ab4d8419bd8416fbb2896fb6dec0c74d
|
Subproject commit 6622cd823789eea38b88bae2bcf0ce1c6280df9a
|
2
monk
2
monk
@ -1 +1 @@
|
|||||||
Subproject commit 71ded394c57b4ed8954643eacde359c1a9bab52c
|
Subproject commit 2ff7730ca8a6ecf70fbd4bdd56cc500ba0292e9f
|
@ -15,16 +15,7 @@
|
|||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
|
||||||
#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_CRITICAL(data) APPL_BASE(1, data)
|
#define APPL_CRITICAL(data) APPL_BASE(1, data)
|
||||||
#define APPL_ERROR(data) APPL_BASE(2, data)
|
#define APPL_ERROR(data) APPL_BASE(2, data)
|
||||||
|
@ -14,16 +14,7 @@
|
|||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
|
||||||
#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_CRITICAL(data) APPL_BASE(1, data)
|
#define APPL_CRITICAL(data) APPL_BASE(1, data)
|
||||||
#define APPL_ERROR(data) APPL_BASE(2, data)
|
#define APPL_ERROR(data) APPL_BASE(2, data)
|
||||||
|
@ -14,16 +14,7 @@
|
|||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
|
||||||
#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_CRITICAL(data) APPL_BASE(1, data)
|
#define APPL_CRITICAL(data) APPL_BASE(1, data)
|
||||||
#define APPL_ERROR(data) APPL_BASE(2, data)
|
#define APPL_ERROR(data) APPL_BASE(2, data)
|
||||||
|
@ -14,16 +14,7 @@
|
|||||||
namespace ewol {
|
namespace ewol {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
#define EWOL_BASE(info,data) TK_LOG_BASE(ewol::getLogId(),info,data)
|
||||||
#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_CRITICAL(data) EWOL_BASE(1, data)
|
#define EWOL_CRITICAL(data) EWOL_BASE(1, data)
|
||||||
#define EWOL_ERROR(data) EWOL_BASE(2, data)
|
#define EWOL_ERROR(data) EWOL_BASE(2, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user