From b022b91c0c6fa807424b6c12cc92ac5946838083 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 13 七月 2017 16:34:39 +0800 Subject: [PATCH] update pipeline --- RtspFace/logger.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RtspFace/logger.h b/RtspFace/logger.h index 63f4882..202b088 100644 --- a/RtspFace/logger.h +++ b/RtspFace/logger.h @@ -7,16 +7,17 @@ extern Logger g_logger; +#define LOG_ENDL std::endl +#define WARN WARNING + #define LOG(__level) g_logger << __level << __FILE__ << ":" << __LINE__ << "\t" -#define LOGP(__level, __format, arg...) { char msg[1024]; sprintf(msg, "%s:%d\t" __format, __FILE__, __LINE__, ##arg); g_logger << __level << msg << std::endl; } +#define LOGP(__level, __format, arg...) { char msg[1024]; sprintf(msg, "%s:%d\t" __format, __FILE__, __LINE__, ##arg); g_logger << __level << msg << LOG_ENDL; } #define LOG_DEBUG LOG(DEBUG) // Debug message do not care in any production environment #define LOG_INFO LOG(INFO) // Not significant event but useful for deal with online problem #define LOG_NOTICE LOG(NOTICE) // Important event #define LOG_WARN LOG(WARNING) // Important event or input which will lead to errors #define LOG_ERROR LOG(ERROR) // Error message means program running in an abnormal (not expected) way - -#define LOG_ENDL std::endl #endif -- Gitblit v1.8.0