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:
youmetme
2024-11-02 20:26:04 +08:00
committed by GitHub
parent b7f49188ad
commit 3ef229ed65
17 changed files with 71 additions and 127 deletions

View File

@@ -1,29 +1,13 @@
/********************************************
* @Date: 2024 09 18
* @Description: 控制台日志处理器
********************************************/
#include "logging/logging-handler.h"
#include <stdio.h>
#include <stdlib.h>
/**
* @brief 释放组件
* @param handler 处理器
*/
static void __freeConsoleHandler(log_Handler *handler) { free(handler); }
/**
* @brief 输出组件
* @param handler 处理器
* @param message 消息
*/
static void outputConsoleHandler(log_Handler *handler, const char *message) {
fputs(message, handler->stream);
}
/**
* @brief :控制台日志处理器
*/
log_Handler *loggingConsoleHandler() {
log_Handler *handler = (log_Handler *)malloc(sizeof(log_Handler));