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:
3
.github/workflows/windows_test.yml
vendored
3
.github/workflows/windows_test.yml
vendored
@@ -2,7 +2,8 @@ name: test on Windows
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main","dev"]
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
cmake_minimum_required(VERSION 3.28...3.30)
|
cmake_minimum_required(VERSION 3.28...3.30)
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS yes)
|
|
||||||
|
|
||||||
project(logging)
|
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(TEST "是否启动单元测试" ON)
|
||||||
option(SHARED "是否编译为动态库" OFF)
|
option(SHARED "是否编译为动态库" OFF)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import os
|
|||||||
|
|
||||||
class loggingRecipe(ConanFile):
|
class loggingRecipe(ConanFile):
|
||||||
name = "logging"
|
name = "logging"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
author = "321640253@qq.com"
|
author = "321640253@qq.com"
|
||||||
url = "https://github.com/WangZhongDian/logging.git"
|
url = "https://github.com/WangZhongDian/logging.git"
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ typedef struct log_Interceptor {
|
|||||||
|
|
||||||
} log_Interceptor;
|
} log_Interceptor;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 子字符串拦截器
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
log_Interceptor *loggingSubStringInterceptor(char *keywords[],
|
log_Interceptor *loggingSubStringInterceptor(char *keywords[],
|
||||||
int count,
|
int count,
|
||||||
log_level level,
|
log_level level,
|
||||||
|
|||||||
Reference in New Issue
Block a user