code: def move_tmp_log(logger):
      
  
      try:
          # https://stackoverflow.com/questions/15435652/python-does-not-release-filehandles-to-logfile
          logging.shutdown()
          shutil.move(log_tmp_fn, os.path.join(config.data_dir, 'multiqc.log'))
          util_functions.robust_rmtree(log_tmp_dir)
      except (AttributeError, TypeError, IOError):
          pass
docs: Move the temporary log file to the MultiQC data directory
      if it exists.