Sets destination of PyMuPDF development/debugging logging. See _make_output() for details.
(
*,
text=None,
fd=None,
stream=None,
path=None,
path_append=None,
pylogging=None,
pylogging_logger=None,
pylogging_level=None,
pylogging_name=None,
)
| 211 | ) |
| 212 | |
| 213 | def set_log( |
| 214 | *, |
| 215 | text=None, |
| 216 | fd=None, |
| 217 | stream=None, |
| 218 | path=None, |
| 219 | path_append=None, |
| 220 | pylogging=None, |
| 221 | pylogging_logger=None, |
| 222 | pylogging_level=None, |
| 223 | pylogging_name=None, |
| 224 | ): |
| 225 | ''' |
| 226 | Sets destination of PyMuPDF development/debugging logging. See |
| 227 | _make_output() for details. |
| 228 | ''' |
| 229 | global _g_out_log |
| 230 | _g_out_log = _make_output( |
| 231 | text=text, |
| 232 | fd=fd, |
| 233 | stream=stream, |
| 234 | path=path, |
| 235 | path_append=path_append, |
| 236 | pylogging=pylogging, |
| 237 | pylogging_logger=pylogging_logger, |
| 238 | pylogging_level=pylogging_level, |
| 239 | pylogging_name=pylogging_name, |
| 240 | default=_g_out_log, |
| 241 | ) |
| 242 | |
| 243 | def log( text='', caller=1): |
| 244 | ''' |
nothing calls this directly
no test coverage detected
searching dependent graphs…