1234567891011121314 |
- #ifndef _LOG_H_
- #define _LOG_H_
- //------------------------------------------------------------------------------
- #define log_info(format, args...) StoreLogMsg("[%s:%d][%s][Info] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- #define log_warn(format, args...) StoreLogMsg("[%s:%d][%s][Warn] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- #define log_error(format, args...) StoreLogMsg("[%s:%d][%s][Error] "format, __FILE__, __LINE__, __FUNCTION__, ##args)
- #define event_info(format, args...) StoreEventLogMsg("[%s:%d][%s][Info] "format, __FILE__, __LINE__, __FUNCTION__, ##args) //DS60-120 add
- //------------------------------------------------------------------------------
- int StoreLogMsg(const char *fmt, ...);
- int StoreEventLogMsg(const char *fmt, ...);
- #endif /* _LOG_H_ */
|