Dev test on windows action (#9)
* #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 不支持中文注释,删除中文注释
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include "logging/logging-handler.h"
|
||||
#include "logging/logging-interceptor.h"
|
||||
|
||||
// 日志操作器
|
||||
|
||||
typedef struct Logger {
|
||||
log_level level;
|
||||
log_Handler *handler;
|
||||
@@ -24,7 +24,7 @@ typedef struct Logger {
|
||||
void (*addInterceptor)(log_Interceptor *Interceptor);
|
||||
} Logger;
|
||||
|
||||
// 日志类对象
|
||||
|
||||
typedef struct Logging {
|
||||
Logger *(*getLogger)(const char *name, log_level level);
|
||||
log_status (*setLevel)(Logger *logger, log_level level);
|
||||
@@ -32,6 +32,6 @@ typedef struct Logging {
|
||||
log_status (*destroyLogging)(struct Logging *logging);
|
||||
} Logging;
|
||||
|
||||
Logging *newLogging(); // 创建日志类对象
|
||||
Logging *newLogging();
|
||||
|
||||
#endif // __LOGGING_H__
|
||||
Reference in New Issue
Block a user