From cd1ad2ff41a06849b6b8ac152038098d7211f2ca Mon Sep 17 00:00:00 2001 From: armink Date: Sat, 29 Oct 2016 08:20:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=BB=98=E8=AE=A4=E6=97=A0=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=EF=BC=8C=E5=A2=9E=E5=BC=BA=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- easylogger/inc/elog.h | 2 +- easylogger/src/elog.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/easylogger/inc/elog.h b/easylogger/inc/elog.h index 88f80cb..32e269d 100644 --- a/easylogger/inc/elog.h +++ b/easylogger/inc/elog.h @@ -74,7 +74,7 @@ extern "C" { #define ELOG_LVL_TOTAL_NUM 6 /* EasyLogger software version number */ -#define ELOG_SW_VERSION "1.10.27" +#define ELOG_SW_VERSION "1.10.29" /* EasyLogger assert for developer. */ #ifdef ELOG_ASSERT_ENABLE diff --git a/easylogger/src/elog.c b/easylogger/src/elog.c index f6f4703..dcfee1d 100644 --- a/easylogger/src/elog.c +++ b/easylogger/src/elog.c @@ -47,6 +47,7 @@ #define F_CYAN "36;" #define F_WHITE "37;" /* output log background color */ +#define B_NULL #define B_BLACK "40;" #define B_RED "41;" #define B_GREEN "42;" @@ -62,22 +63,22 @@ #define S_NORMAL "22m" /* output log default color definition: [front color] + [background color] + [show style] */ #ifndef ELOG_COLOR_ASSERT -#define ELOG_COLOR_ASSERT (F_MAGENTA B_BLACK S_NORMAL) +#define ELOG_COLOR_ASSERT (F_MAGENTA B_NULL S_NORMAL) #endif #ifndef ELOG_COLOR_ERROR -#define ELOG_COLOR_ERROR (F_RED B_BLACK S_NORMAL) +#define ELOG_COLOR_ERROR (F_RED B_NULL S_NORMAL) #endif #ifndef ELOG_COLOR_WARN -#define ELOG_COLOR_WARN (F_YELLOW B_BLACK S_NORMAL) +#define ELOG_COLOR_WARN (F_YELLOW B_NULL S_NORMAL) #endif #ifndef ELOG_COLOR_INFO -#define ELOG_COLOR_INFO (F_CYAN B_BLACK S_NORMAL) +#define ELOG_COLOR_INFO (F_CYAN B_NULL S_NORMAL) #endif #ifndef ELOG_COLOR_DEBUG -#define ELOG_COLOR_DEBUG (F_GREEN B_BLACK S_NORMAL) +#define ELOG_COLOR_DEBUG (F_GREEN B_NULL S_NORMAL) #endif #ifndef ELOG_COLOR_VERBOSE -#define ELOG_COLOR_VERBOSE (F_BLUE B_BLACK S_NORMAL) +#define ELOG_COLOR_VERBOSE (F_BLUE B_NULL S_NORMAL) #endif /* EasyLogger object */ @@ -144,7 +145,6 @@ void elog_start(void) { elog_set_output_enabled(true); /* show version */ elog_i(log_tag, "EasyLogger V%s is initialize success.", ELOG_SW_VERSION); - elog_i(log_tag, "You can get the latest version on https://github.com/armink/EasyLogger ."); } /**