enable_logging¶
- enable_logging(level=20)[source]¶
Enable logging for the divi package with Rich formatting.
Sets up a RichHandler that provides colorized, formatted log output and removes the ‘._reporter’ suffix from logger names.
- Parameters:
level (
int, optional) – Logging level to set (e.g., logging.INFO, logging.DEBUG). Defaults to logging.INFO.
Note
This function clears any existing handlers and sets up a new handler with custom formatting.