Closed
Description
Is your feature request related to a problem? Please describe.
PyMuPDF==1.24.10
will occasionally print MuPDF error
s to stdout
.
The issue with print
is:
- Random
stdout
prints mess with CLI utilities likerich.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 ofprint
- And
message
to support a "level" argument (e.g. error level, debug level, etc)
- And
- PyMuPDF to move to Python
logging
Describe alternatives you've considered
None
Additional context
None