def make_logging_handlers_and_tools(self, multiproc=False):
log_stdout = self.log_stdout<EOL>if sys.stdout is self._stdout_to_logger:<EOL><INDENT>log_stdout = False<EOL><DEDENT>if self.log_config:<EOL><INDENT>if multiproc:<EOL><INDENT>proc_log_config = self._mp_config<EOL><DEDENT>else:<EOL><INDENT>proc_log_config = self._sp_config<EOL><DEDENT>if proc_log_config:<EOL><INDENT>if isinstance(proc_log_config, dict):<EOL><INDENT>new_dict = self._handle_dict_config(proc_log_config)<EOL>dictConfig(new_dict)<EOL><DEDENT>else:<EOL><INDENT>parser = self._handle_config_parsing(proc_log_config)<EOL>memory_file = self._parser_to_string_io(parser)<EOL>fileConfig(memory_file, disable_existing_loggers=False)<EOL><DEDENT><DEDENT><DEDENT>if log_stdout:<EOL><INDENT>std_name, std_level = self.log_stdout<EOL>stdout = StdoutToLogger(std_name, log_level=std_level)<EOL>stdout.start()<EOL>self._tools.append(stdout)<EOL><DEDENT>
Creates logging handlers and redirects stdout.