Logging Handler =============== Rich supplies a :ref:`logging handler` which will format and colorize text written by Python's logging module. Here's an example of how to set up a rich logger:: import logging from rich.logging import RichHandler FORMAT = "%(message)s" logging.basicConfig( level="NOTSET", format=FORMAT, datefmt="[%X]", handlers=[RichHandler()] ) log = logging.getLogger("rich") log.info("Hello, World!")