* #feat 增强Fatal级别的底色,修改logging类的方法 * 更新版本号 * 加入test脚本 * fix:conanfile * test action * 修复错别字 * add test on windows action * fix test on windows action * fix action on windows * fix * fix 内存分配错误 * fix msvc 不支持中文注释,删除中文注释
16 lines
407 B
C
16 lines
407 B
C
#ifndef __LOGGING_HANDLER_H__
|
|
#define __LOGGING_HANDLER_H__
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef struct log_Handler {
|
|
void *stream;
|
|
bool apply_color;
|
|
void (*_free)(struct log_Handler *handler);
|
|
void (*output)(struct log_Handler *handler, const char *message);
|
|
} log_Handler;
|
|
|
|
log_Handler *loggingFileHandler(const char *name);
|
|
log_Handler *loggingConsoleHandler();
|
|
|
|
#endif //__LOGGING_HANDLER_H__
|