mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00

* Refactor #1637 * Refactor #1637 * Refactor #1637 * Refactor #1637 * Refactor #1637 * Refactor #1637 * Update config.py Co-authored-by: 鹤翔万里 <tonycrane@foxmail.com>
12 lines
228 B
Python
12 lines
228 B
Python
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")
|