Commit bf445418 authored by chen.weican's avatar chen.weican

【修改内容】添加kk_log.h

【提交人】陈伟灿
parent 70cb1a92
#ifndef _LOGDEF_H_
#define _LOGDEF_H_
#include <syslog.h>
#define DEBUG_PRINT(info,args...) do { \
syslog(LOG_DEBUG, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define INFO_PRINT(info,args...) do { \
syslog(LOG_INFO, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define ERROR_PRINT(info,args...) do { \
syslog(LOG_ERR, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#define WARNING_PRINT(info,args...) do { \
syslog(LOG_WARNING, info, ##args); \
printf("\n["__FILE__":%d] "info,__LINE__, ##args); \
}while(0)
#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