release v0.2.4 (#10)

* #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 不支持中文注释,删除中文注释

* test on windows and test  chinese char

* ersion 0.2.4
This commit is contained in:
youmetme
2024-11-03 11:51:08 +08:00
committed by GitHub
parent 3ef229ed65
commit 650ce0dc3f
4 changed files with 16 additions and 4 deletions

View File

@@ -2,7 +2,8 @@ name: test on Windows
on:
push:
branches: ["main"]
branches: ["main","dev"]
pull_request:
branches: ["main"]

View File

@@ -1,9 +1,14 @@
cmake_minimum_required(VERSION 3.28...3.30)
set(CMAKE_EXPORT_COMPILE_COMMANDS yes)
project(logging)
if(MSVC)
add_compile_options("/source-charset:utf-8")
add_compile_options("/execution-charset:utf-8")
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS yes)
option(TEST "是否启动单元测试" ON)
option(SHARED "是否编译为动态库" OFF)

View File

@@ -5,7 +5,7 @@ import os
class loggingRecipe(ConanFile):
name = "logging"
version = "0.2.3"
version = "0.2.4"
license = "MIT"
author = "321640253@qq.com"
url = "https://github.com/WangZhongDian/logging.git"

View File

@@ -12,6 +12,12 @@ typedef struct log_Interceptor {
} log_Interceptor;
/**
* @brief 子字符串拦截器
* @param
* @return
*/
log_Interceptor *loggingSubStringInterceptor(char *keywords[],
int count,
log_level level,