fix 改了一部分logger格式

This commit is contained in:
SengokuCola
2025-03-18 09:59:58 +08:00
parent 4bf6f1e204
commit 5b875f087b
8 changed files with 224 additions and 38 deletions

View File

@@ -5,8 +5,18 @@ from ..chat.config import global_config
from .mode_classical import WillingManager as ClassicalWillingManager
from .mode_dynamic import WillingManager as DynamicWillingManager
from .mode_custom import WillingManager as CustomWillingManager
from src.common.logger import LogConfig
logger = get_module_logger("willing")
willing_config = LogConfig(
console_format=(
"<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
"<level>{level: <8}</level> | "
"<red>{extra[module]: <12}</red> | "
"<level>{message}</level>"
),
)
logger = get_module_logger("willing",config=willing_config)
def init_willing_manager() -> Optional[object]:
"""