test on windows and test chinese char

This commit is contained in:
2024-11-02 22:38:45 +08:00
parent 668f88f8af
commit de141cbafc
3 changed files with 13 additions and 3 deletions

View File

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

View File

@@ -1,9 +1,13 @@
cmake_minimum_required(VERSION 3.28...3.30)
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)
project(logging)
option(TEST "是否启动单元测试" ON)
option(SHARED "是否编译为动态库" OFF)

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,