def _change_logging_kwargs(kwargs):
log_levels = kwargs.pop('<STR_LIT>', None)<EOL>log_folder = kwargs.pop('<STR_LIT>', '<STR_LIT>')<EOL>logger_names = kwargs.pop('<STR_LIT>', '<STR_LIT>')<EOL>if log_levels is None:<EOL><INDENT>log_levels = kwargs.pop('<STR_LIT>', logging.INFO)<EOL><DEDENT>log_multiproc = kwargs.pop('<STR_LIT>', True)<EOL>if not isinstance(logger_names, (tuple, list)):<EOL><INDENT>logger_names = [logger_names]<EOL><DEDENT>if not isinstance(log_levels, (tuple, list)):<EOL><INDENT>log_levels = [log_levels]<EOL><DEDENT>if len(log_levels) == <NUM_LIT:1>:<EOL><INDENT>log_levels = [log_levels[<NUM_LIT:0>] for _ in logger_names]<EOL><DEDENT>dictionary = copy.deepcopy(LOGGING_DICT)<EOL>prefixes = ['<STR_LIT>']<EOL>if not log_multiproc:<EOL><INDENT>for key in list(dictionary.keys()):<EOL><INDENT>if key.startswith('<STR_LIT>'):<EOL><INDENT>del dictionary[key]<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>prefixes.append('<STR_LIT>')<EOL><DEDENT>for prefix in prefixes:<EOL><INDENT>for handler_dict in dictionary[prefix + '<STR_LIT>'].values():<EOL><INDENT>if '<STR_LIT:filename>' in handler_dict:<EOL><INDENT>filename = os.path.join(log_folder, handler_dict['<STR_LIT:filename>'])<EOL>filename = os.path.normpath(filename)<EOL>handler_dict['<STR_LIT:filename>'] = filename<EOL><DEDENT><DEDENT>dictionary[prefix + '<STR_LIT>'] = {}<EOL>logger_dict = dictionary[prefix + '<STR_LIT>']<EOL>for idx, logger_name in enumerate(logger_names):<EOL><INDENT>logger_dict[logger_name] = {<EOL>'<STR_LIT>': log_levels[idx],<EOL>'<STR_LIT>': list(dictionary[prefix + '<STR_LIT>'].keys())<EOL>}<EOL><DEDENT><DEDENT>kwargs['<STR_LIT>'] = dictionary<EOL>
Helper function to turn the simple logging kwargs into a `log_config`.