Files
linux_script/awinlib/__init__.py

16 lines
300 B
Python

import logging
from rich.logging import RichHandler
LOGFORMAT_RICH = '%(thread)d %(message)s'
richHandler = RichHandler(
rich_tracebacks=True,
)
richHandler.setFormatter(logging.Formatter(LOGFORMAT_RICH))
logging.basicConfig(
level=logging.INFO,
handlers=[
richHandler,
]
)