[DEV] update of external of elog and ethread
This commit is contained in:
parent
bf465ce304
commit
a9355a5168
@ -9,7 +9,7 @@
|
|||||||
#include <ege/debug.h>
|
#include <ege/debug.h>
|
||||||
|
|
||||||
int32_t ege::getLogId() {
|
int32_t ege::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("ege");
|
static int32_t g_val = elog::registerInstance("ege");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace ege {
|
namespace ege {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
#define EGE_BASE(info,data) TK_LOG_BASE(ege::getLogId(),info,data)
|
#define EGE_BASE(info,data) ELOG_BASE(ege::getLogId(),info,data)
|
||||||
|
|
||||||
#define EGE_CRITICAL(data) EGE_BASE(1, data)
|
#define EGE_CRITICAL(data) EGE_BASE(1, data)
|
||||||
#define EGE_ERROR(data) EGE_BASE(2, data)
|
#define EGE_ERROR(data) EGE_BASE(2, data)
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
#include <appl/debug.h>
|
#include <appl/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("GP-spaceShip");
|
static int32_t g_val = elog::registerInstance("GP-spaceShip");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
@ -15,11 +15,11 @@ namespace appl {
|
|||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||||
#define APPL_BASE(info,data) \
|
#define APPL_BASE(info,data) \
|
||||||
do { \
|
do { \
|
||||||
if (info <= etk::log::getLevel(appl::getLogId())) { \
|
if (info <= elog::getLevel(appl::getLogId())) { \
|
||||||
std::stringbuf sb; \
|
std::stringbuf sb; \
|
||||||
std::ostream tmpStream(&sb); \
|
std::ostream tmpStream(&sb); \
|
||||||
tmpStream << data; \
|
tmpStream << data; \
|
||||||
etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
elog::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
#include <appl/debug.h>
|
#include <appl/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("GP-spaceShip");
|
static int32_t g_val = elog::registerInstance("GP-spaceShip");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
@ -15,11 +15,11 @@ namespace appl {
|
|||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||||
#define APPL_BASE(info,data) \
|
#define APPL_BASE(info,data) \
|
||||||
do { \
|
do { \
|
||||||
if (info <= etk::log::getLevel(appl::getLogId())) { \
|
if (info <= elog::getLevel(appl::getLogId())) { \
|
||||||
std::stringbuf sb; \
|
std::stringbuf sb; \
|
||||||
std::ostream tmpStream(&sb); \
|
std::ostream tmpStream(&sb); \
|
||||||
tmpStream << data; \
|
tmpStream << data; \
|
||||||
etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
elog::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
#include <appl/debug.h>
|
#include <appl/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("GP-spaceShip");
|
static int32_t g_val = elog::registerInstance("GP-spaceShip");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
@ -15,11 +15,11 @@ namespace appl {
|
|||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||||
#define APPL_BASE(info,data) \
|
#define APPL_BASE(info,data) \
|
||||||
do { \
|
do { \
|
||||||
if (info <= etk::log::getLevel(appl::getLogId())) { \
|
if (info <= elog::getLevel(appl::getLogId())) { \
|
||||||
std::stringbuf sb; \
|
std::stringbuf sb; \
|
||||||
std::ostream tmpStream(&sb); \
|
std::ostream tmpStream(&sb); \
|
||||||
tmpStream << data; \
|
tmpStream << data; \
|
||||||
etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
elog::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
#include <appl/debug.h>
|
#include <appl/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("GP-spaceShip");
|
static int32_t g_val = elog::registerInstance("GP-spaceShip");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
@ -15,11 +15,11 @@ namespace appl {
|
|||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||||
#define APPL_BASE(info,data) \
|
#define APPL_BASE(info,data) \
|
||||||
do { \
|
do { \
|
||||||
if (info <= etk::log::getLevel(appl::getLogId())) { \
|
if (info <= elog::getLevel(appl::getLogId())) { \
|
||||||
std::stringbuf sb; \
|
std::stringbuf sb; \
|
||||||
std::ostream tmpStream(&sb); \
|
std::ostream tmpStream(&sb); \
|
||||||
tmpStream << data; \
|
tmpStream << data; \
|
||||||
etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
elog::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
#include <appl/debug.h>
|
#include <appl/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("GP-spaceShip");
|
static int32_t g_val = elog::registerInstance("GP-spaceShip");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
@ -15,11 +15,11 @@ namespace appl {
|
|||||||
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
|
||||||
#define APPL_BASE(info,data) \
|
#define APPL_BASE(info,data) \
|
||||||
do { \
|
do { \
|
||||||
if (info <= etk::log::getLevel(appl::getLogId())) { \
|
if (info <= elog::getLevel(appl::getLogId())) { \
|
||||||
std::stringbuf sb; \
|
std::stringbuf sb; \
|
||||||
std::ostream tmpStream(&sb); \
|
std::ostream tmpStream(&sb); \
|
||||||
tmpStream << data; \
|
tmpStream << data; \
|
||||||
etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
elog::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user