MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / set_log

Function set_log

src/__init__.py:213–241  ·  view source on GitHub ↗

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,
        )

Source from the content-addressed store, hash-verified

211 )
212
213def 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
243def log( text='', caller=1):
244 '''

Callers

nothing calls this directly

Calls 1

_make_outputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…