**Is your feature request related to a problem? Please describe.** `PyMuPDF==1.24.10` will occasionally print [`MuPDF error`](https://github.com/pymupdf/PyMuPDF/blob/1.24.10/src/__init__.py#L16658-L16659)s to [`stdout`](https://github.com/pymupdf/PyMuPDF/blob/1.24.10/src/__init__.py#L102-L107). The issue with `print` is: - Random `stdout` prints mess with CLI utilities like `rich.Progress` bars - Misses the opportunity for the benefits of Python logging (process global message formatting and/or filtering) **Describe the solution you'd like** Either: - PyMuPDF to expose a way for callers to "install" a `logging.Logger` instead of `print` - And `message` to support a "level" argument (e.g. error level, debug level, etc) - PyMuPDF to move to Python `logging` **Describe alternatives you've considered** None **Additional context** None