Sets destination of PyMuPDF messages. 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,
)
| 182 | |
| 183 | |
| 184 | def set_messages( |
| 185 | *, |
| 186 | text=None, |
| 187 | fd=None, |
| 188 | stream=None, |
| 189 | path=None, |
| 190 | path_append=None, |
| 191 | pylogging=None, |
| 192 | pylogging_logger=None, |
| 193 | pylogging_level=None, |
| 194 | pylogging_name=None, |
| 195 | ): |
| 196 | ''' |
| 197 | Sets destination of PyMuPDF messages. See _make_output() for details. |
| 198 | ''' |
| 199 | global _g_out_message |
| 200 | _g_out_message = _make_output( |
| 201 | text=text, |
| 202 | fd=fd, |
| 203 | stream=stream, |
| 204 | path=path, |
| 205 | path_append=path_append, |
| 206 | pylogging=pylogging, |
| 207 | pylogging_logger=pylogging_logger, |
| 208 | pylogging_level=pylogging_level, |
| 209 | pylogging_name=pylogging_name, |
| 210 | default=_g_out_message, |
| 211 | ) |
| 212 | |
| 213 | def set_log( |
| 214 | *, |
nothing calls this directly
no test coverage detected
searching dependent graphs…