[DEV] update of external of elog and ethread

This commit is contained in:
Edouard DUPIN 2016-03-08 21:29:34 +01:00
parent c94d56f491
commit df0a816b12
5 changed files with 7 additions and 7 deletions

View File

@ -9,6 +9,6 @@
#include <enet/debug.h>
int32_t enet::getLogId() {
static int32_t g_val = etk::log::registerInstance("enet");
static int32_t g_val = elog::registerInstance("enet");
return g_val;
}

View File

@ -7,13 +7,13 @@
*/
#pragma once
#include <etk/log.h>
#include <elog/log.h>
namespace enet {
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_ERROR(data) ENET_BASE(2, data)

View File

@ -9,6 +9,6 @@
#include <test/debug.h>
int32_t appl::getLogId() {
static int32_t g_val = etk::log::registerInstance("enettest");
static int32_t g_val = elog::registerInstance("enettest");
return g_val;
}

View File

@ -7,13 +7,13 @@
*/
#pragma once
#include <etk/log.h>
#include <elog/log.h>
namespace appl {
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_ERROR(data) APPL_BASE(2, data)

View File

@ -15,7 +15,7 @@
#define __class__ "test"
int main(int argc, const char *argv[]) {
etk::log::setLevel(etk::log::logLevelDebug);
elog::setLevel(elog::logLevelDebug);
APPL_VERBOSE("plop");
if (argc > 2) {
// client mode ...