diff --git a/.github/workflows/windows_test.yml b/.github/workflows/windows_test.yml index ad6fc79..ef9c375 100644 --- a/.github/workflows/windows_test.yml +++ b/.github/workflows/windows_test.yml @@ -2,7 +2,7 @@ name: test on Windows on: push: - branches: ["main"] + branches: ["main","dev"] pull_request: branches: ["main"] diff --git a/CMakeLists.txt b/CMakeLists.txt index f390aec..5147b7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/include/logging/logging-interceptor.h b/include/logging/logging-interceptor.h index a365027..973fe48 100644 --- a/include/logging/logging-interceptor.h +++ b/include/logging/logging-interceptor.h @@ -12,6 +12,12 @@ typedef struct log_Interceptor { } log_Interceptor; + +/** +* @brief 子字符串拦截器 +* @param +* @return +*/ log_Interceptor *loggingSubStringInterceptor(char *keywords[], int count, log_level level,