[Update] log system

- [Add] New `log.c` module based on rxi's MIT-licensed log library
- [Implement] Runtime switches to enable/disable output elements:
  - log_is_log_time()
  - log_is_log_level()
  - log_is_log_filename()
  - log_is_log_line()
- [Improve] stdout and file callbacks now respect user-defined output settings
- [Remove] Remove some useless logic
This commit is contained in:
xiaozhou233 committed 2025-10-08 15:57:37 +08:00
1 parent f9c730e364
commit 126e255a85
10 files changed
+358 -28

No files matched your search

+2
View File
@@ -20,6 +20,7 @@ function(add_juice_module NAME)
${CMAKE_SOURCE_DIR}/includes/jvm/win32
${CMAKE_SOURCE_DIR}/includes/JuiceLoader
${CMAKE_SOURCE_DIR}/includes/ReflectiveDLLInjection
${CMAKE_SOURCE_DIR}/includes/log.c
"${CMAKE_SOURCE_DIR}/src/${NAME}/utils"
"${CMAKE_SOURCE_DIR}/src/${NAME}/include"
)
@@ -27,6 +28,7 @@ function(add_juice_module NAME)
# Link common libraries
target_link_libraries(${NAME} PRIVATE
ReflectiveDLLInjection
log.c
jvm
)