[DEV] update of external of elog and ethread
This commit is contained in:
parent
c94d56f491
commit
df0a816b12
@ -9,6 +9,6 @@
|
|||||||
#include <enet/debug.h>
|
#include <enet/debug.h>
|
||||||
|
|
||||||
int32_t enet::getLogId() {
|
int32_t enet::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("enet");
|
static int32_t g_val = elog::registerInstance("enet");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace enet {
|
namespace enet {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ENET_BASE(info,data) TK_LOG_BASE(enet::getLogId(),info,data)
|
#define ENET_BASE(info,data) ELOG_BASE(enet::getLogId(),info,data)
|
||||||
|
|
||||||
#define ENET_CRITICAL(data) ENET_BASE(1, data)
|
#define ENET_CRITICAL(data) ENET_BASE(1, data)
|
||||||
#define ENET_ERROR(data) ENET_BASE(2, data)
|
#define ENET_ERROR(data) ENET_BASE(2, data)
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
#include <test/debug.h>
|
#include <test/debug.h>
|
||||||
|
|
||||||
int32_t appl::getLogId() {
|
int32_t appl::getLogId() {
|
||||||
static int32_t g_val = etk::log::registerInstance("enettest");
|
static int32_t g_val = elog::registerInstance("enettest");
|
||||||
return g_val;
|
return g_val;
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <elog/log.h>
|
||||||
|
|
||||||
namespace appl {
|
namespace appl {
|
||||||
int32_t getLogId();
|
int32_t getLogId();
|
||||||
};
|
};
|
||||||
|
|
||||||
#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
|
#define APPL_BASE(info,data) ELOG_BASE(appl::getLogId(),info,data)
|
||||||
|
|
||||||
#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)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#define __class__ "test"
|
#define __class__ "test"
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
int main(int argc, const char *argv[]) {
|
||||||
etk::log::setLevel(etk::log::logLevelDebug);
|
elog::setLevel(elog::logLevelDebug);
|
||||||
APPL_VERBOSE("plop");
|
APPL_VERBOSE("plop");
|
||||||
if (argc > 2) {
|
if (argc > 2) {
|
||||||
// client mode ...
|
// client mode ...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user