添加了config读取,写入,重置功能

This commit is contained in:
Nanaloveyuki
2025-07-27 14:52:15 +08:00
parent 8193cd42a7
commit f2833cb719
3 changed files with 172 additions and 0 deletions

22
config.json Normal file
View File

@ -0,0 +1,22 @@
{
"file_level": "DEBUG",
"file_name": "pliblog.log",
"file_path": "./",
"file_format": "{asctime} | {levelname} | {prefix} {message}",
"file_encoding": "utf-8",
"enable_console": true,
"enable_file": true,
"console_color": true,
"console_level": "INFO",
"console_format": "{asctime} | {levelname} | {prefix} {message}",
"console_prefix": "Auto",
"console_encoding": "utf-8",
"date_format": "%Y-%m-%d %H:%M:%S",
"level_name": {
"DEBUG": "DEBUG",
"INFO": "INFO",
"WARN": "WARN",
"ERRO": "ERRO",
"CRIT": "CRIT"
}
}