Source code for capytaine.ui.rich

import logging
from rich.logging import RichHandler

[docs] def set_logging(level="INFO"): logging.basicConfig(level=level, format="%(message)s", handlers=[RichHandler(level=level, log_time_format="[%X]", show_path=False)], force=True)