capytaine.ui.rich module

capytaine.ui.rich.set_logging(level='INFO', force=True)[source]

Configure logging with a nice Rich handler.

If the root logger already has handlers (i.e., the user has set up their own logging configuration), this function does nothing unless force=True.

In capytaine.__init__, it is called with force=False to only trigger if the user has not set any other logging.