setup_mp_log

log.setup_mp_log(queue, name, level, dst=None)

Set up logging for multiprocessing.

This essentially is a pipe back to the main Python process.

Parameters

Name Type Description Default
queue queue.Queue A queue where the messages will be put in. N.B. this must be a multiprocessing queue, a normal queue.Queue will not suffice. required
name str Identifier of the logger. required
level int Logging level. required
dst str Destination of the logging. I.e. the path to the logging file. None

Returns

Type Description
Receiver A receiver object. This is the receiver of the pipeline.
Back to top