添加配置文件

This commit is contained in:
taocong
2026-09-16 09:48:46 +08:00
committed by taocong
parent 7b0a7e1687
commit afb8161648
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -22,3 +22,4 @@
!update_info.json !update_info.json
!docs !docs
!config/ !config/
!config/**
+26
View File
@@ -0,0 +1,26 @@
[codeSearch]
convertPath=
searchPath=
[log]
; 日志等级:DEBUG < INFO < WARNING < ERROR,等级越高输出越少(默认 INFO)
level=INFO
; 日志输出路径固定为“可执行文件所在目录/logs”,不支持配置
; 日志文件名(默认 change_code.log)
file=change_code.log
; 是否写入日志文件(true/false,默认 true)
fileEnabled=true
; 日志文件最大大小(支持 B/KB/MB/GB,默认 10MB;0 表示不限制)
maxSize=10MB
; 日志文件最大数量(轮转保留个数,默认 100)
maxFiles=100
; 日志文件保留天数(默认 30 天;0 表示不限制)
maxAge=30
; 是否在控制台打印日志(默认 true)
console=true
; 是否在日志中添加调用堆栈(默认 false,仅 Windows 生效)
caller=false
; 日志格式(text / json,默认 text)
format=text
; 日志时间格式(Go 风格布局或 Qt 格式,默认 2006-01-02 15:04:05.000)
timeFormat=2006-01-02 15:04:05.000