Out of the box, Python's logging module does not play well with its multiprocessing module. For the time being I've worked around this by passing the log level to child processes as a parameter, and writing some clunky conditional print statements in the parallel worker functions. This is perfectly usable, but ugly. I know that there are some well established workarounds for this restriction, so I would like to eventually implement one and stick to exclusively using the logger for console output for consistency.
Out of the box, Python's logging module does not play well with its multiprocessing module. For the time being I've worked around this by passing the log level to child processes as a parameter, and writing some clunky conditional print statements in the parallel worker functions. This is perfectly usable, but ugly. I know that there are some well established workarounds for this restriction, so I would like to eventually implement one and stick to exclusively using the logger for console output for consistency.