mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2025-02-21 15:52:04 +00:00
13 lines
242 B
Python
13 lines
242 B
Python
import logging
|
|
|
|
from rich.logging import RichHandler
|
|
|
|
logging.basicConfig(
|
|
level="NOTSET",
|
|
format="%(timestamp)s - %(message)s",
|
|
datefmt="[%X]",
|
|
handlers=[RichHandler(rich_tracebacks=True)],
|
|
)
|
|
|
|
log = logging.getLogger("rich")
|