️ 提升了使用fmt时的性能,优化了算法

This commit is contained in:
Nanaloveyuki
2025-07-28 17:06:05 +08:00
parent 827658beab
commit 563cecac97
6 changed files with 48 additions and 59 deletions

View File

@ -9,7 +9,6 @@ py-logiliteal's config settings, used to set py-logiliteal's global config
import json
from os import remove
import shutil
import time
from pathlib import Path
from typing import Union, Optional, Tuple
from logging import error
@ -28,7 +27,7 @@ DEFAULT_CONFIG = {
"console_format": "{time} {levelname} | {prefix}{message}",
"console_prefix": "Auto",
"console_encoding": "utf-8",
"date_format": "%Y-%m-%d %H:%M:%S",
"asctime_format": "%Y-%m-%d %H:%M:%S",
"level_name": {"DEBUG": "DEBUG", "INFO": "INFO", "WARN": "WARN", "ERRO": "ERRO", "CRIT": "CRIT"},
"level_color": {"DEBUG": "#c1d5ff", "INFO": "#c1ffff", "WARN": "#fff600", "ERRO": "#ffa000", "CRIT": "#ff8181"},
}