🎨 改进了对占位符和正则表达式的处理

This commit is contained in:
Nanaloveyuki
2025-07-29 14:17:22 +08:00
parent 89bc381235
commit 796a8a82f6
8 changed files with 331 additions and 206 deletions

View File

@ -1,32 +0,0 @@
{
"file_level": "DEBUG",
"file_name": "latest.log",
"file_path": "./logs",
"file_format": "{asctime} {levelname} | {prefix}{message}",
"file_encoding": "utf-8",
"enable_console": true,
"enable_file": true,
"console_color": true,
"console_level": "INFO",
"console_format": "{time} {levelname} | {prefix}{message}",
"console_prefix": "Auto",
"console_encoding": "utf-8",
"asctime_format": "%Y-%m-%d %H:%M:%S",
"time_format": "%H:%M:%S",
"date_format": "%Y-%m-%d",
"weekday_format": "%A",
"level_name": {
"DEBUG": "DEBUG",
"INFO": "INFO",
"WARN": "WARN",
"ERRO": "ERRO",
"CRIT": "CRIT"
},
"level_color": {
"DEBUG": "#c1d5ff",
"INFO": "#c1ffff",
"WARN": "#fff600",
"ERRO": "#ffa000",
"CRIT": "#ff8181"
}
}

View File

@ -8,8 +8,8 @@ from src.logiliteal import Logger
log = Logger()
log.info("测试信息日志")
log.debug("测试调试日志")
log.info("测试信息日志")
log.warn("测试警告日志")
log.error("测试错误日志")
log.critical("测试严重错误日志")