* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Update config.py

Co-authored-by: 鹤翔万里 <tonycrane@foxmail.com>
This commit is contained in:
Michael W
2021-10-16 13:04:52 +08:00
committed by GitHub
parent bee3470856
commit 0e574882b3
9 changed files with 27 additions and 22 deletions

View File

@ -1,9 +1,12 @@
import logging
from rich.logging import RichHandler
__all__ = ["log"]
FORMAT = "%(message)s"
logging.basicConfig(
level="NOTSET", format=FORMAT, datefmt="[%X]", handlers=[RichHandler()]
)
log = logging.getLogger("rich")
log = logging.getLogger("rich")