test on windows and test chinese char
This commit is contained in:
2
.github/workflows/windows_test.yml
vendored
2
.github/workflows/windows_test.yml
vendored
@@ -2,7 +2,7 @@ name: test on Windows
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches: ["main","dev"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -12,6 +12,12 @@ typedef struct log_Interceptor {
|
||||
|
||||
} log_Interceptor;
|
||||
|
||||
|
||||
/**
|
||||
* @brief 子字符串拦截器
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
log_Interceptor *loggingSubStringInterceptor(char *keywords[],
|
||||
int count,
|
||||
log_level level,
|
||||
|
||||
Reference in New Issue
Block a user