log_with_multi_handler¶
- sofia_redux.toolkit.utilities.multiprocessing.log_with_multi_handler(logger)[source]¶
Context manager to temporarily log messages for unique processes/threads
Temporarily disables all log handlers and outputs the results to a dictionary of the form {(process, thread): list(records)} where process is returned by
multiprocessing.current_process()
and thread is returned bythreading.current_thread()
.- Parameters:
- loggerlogging.Logger
- Yields:
- multi_handlerMultitaskHandler