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

Function set_messages

src/__init__.py:184–211  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182
183
184def 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
213def set_log(
214 *,

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…