Refine location

This commit is contained in:
2025-02-05 13:59:59 +08:00
parent fc0e89ee41
commit 1edf0279c5
15 changed files with 816 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import logging
from rich.logging import RichHandler
LOGFORMAT_RICH = '%(message)s'
richHandler = RichHandler(
rich_tracebacks=True,
)
richHandler.setFormatter(logging.Formatter(LOGFORMAT_RICH))
logging.basicConfig(
level=logging.INFO,
handlers=[
richHandler,
]
)