Commit 43f89c3a authored by captainwong's avatar captainwong

update log2

parent 7fef23ea
......@@ -3,32 +3,7 @@
#include "base/config.h"
#ifdef JLIB_DISABLE_LOG
namespace jlib {
#define init_logger
#define JLOG_DBUG
#define JLOG_INFO
#define JLOG_WARN
#define JLOG_ERRO
#define JLOG_CRTC
#define JLOG_ALL
class range_log {
public:
range_log() {}
range_log(const char*) {}
};
#define AUTO_LOG_FUNCTION
#define dump_hex
#define dump_asc
#define JLOG_HEX
#define JLOG_ASC
}
#include "no_log.h"
#else // JLIB_DISABLE_LOG
#define JLIB_LOG2_ENABLED
......
#pragma once
#if defined(DISABLE_JLIB_LOG2) && !defined(JLIB_DISABLE_LOG)
#define JLIB_DISABLE_LOG
#endif
#ifndef JLIB_DISABLE_LOG
#include "log2.h"
#else // JLIB_DISABLE_LOG
#include "log2micros.h"
#endif // JLIB_DISABLE_LOG
#pragma once
#pragma once
#if defined(DISABLE_JLIB_LOG2) && !defined(JLIB_DISABLE_LOG)
#define JLIB_DISABLE_LOG
#endif
#ifndef JLIB_DISABLE_LOG
#include "log2.h"
#else // JLIB_DISABLE_LOG
#ifndef JLIB_LOG2_ENABLED
#define init_logger
#define JLOG_DBUG
#define JLOG_INFO
......@@ -27,4 +21,5 @@ public:
#define dump_asc
#define JLOG_HEX
#define JLOG_ASC
#endif // JLIB_DISABLE_LOG
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment