⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cutil-log.h

📁 Linux环境下常用功能的实现
💻 H
字号:
#ifndef __CUTIL_LOG_H__#define __CUTIL_LOG_H__#ifdef __cplusplusextern "C"{#endif#define CUTIL_LOG_DEBUG	0#define CUTIL_LOG_ERROR	1#define CUTIL_LOG_TRANS	2void cutil_log_print(int nLogLevel, char *pszFile, 					int nLine, char *pszFmt, ...);void cutil_log_print_hex(int nLogLevel, char *pszFile, 					int nLine, char *pszBuffer, int nLen);void cutil_log_set_debug(int bIfDebug);#define cutil_log_debug(format...) \	cutil_log_print(CUTIL_LOG_DEBUG, __FILE__, __LINE__, format);#define cutil_log_error(format...) \	cutil_log_print(CUTIL_LOG_ERROR, __FILE__, __LINE__, format);#define cutil_log_trans(format...) \	cutil_log_print(CUTIL_LOG_TRANS, __FILE__, __LINE__, format);#define cutil_log_debug_hex(str, len) \	cutil_log_print_hex(CUTIL_LOG_DEBUG, __FILE__, __LINE__, str, len);#define cutil_log_error_hex(str, len) \	cutil_log_print_hex(CUTIL_LOG_ERROR, __FILE__, __LINE__, str, len);#define cutil_log_trans_hex(str, len) \	cutil_log_print_hex(CUTIL_LOG_TRANS, __FILE__, __LINE__, str, len);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -