old_contents: # -*- coding: utf-8 -*-
  
  import logging
  
  from logging.handlers import TimedRotatingFileHandler
  
  
  def init(logger=None, level="INFO", file=None, handler_cls=None,
           max_count=30, propagate=False, file_config=None, dict_config=None):
      # Initialize the argument logger with the arguments, level and log_file.
      if logger:
          fmt = ("%(asctime)s - %(process)d - %(pathname)s - %(funcName)s - "
                 "%(lineno)d - %(levelname)s - %(message)s")
          datefmt = "%Y-%m-%d %H:%M:%S"
          formatter = logging.Formatter(fmt=fmt, datefmt=datefmt)
  
          level = getattr(logging, level.upper())
  
          if file:
              if handler_cls:
                  handler = handler_cls(file, max_count)
              else:
                  handler = TimedRotatingFileHandler(file, when="midnight",
                                                     interval=1, backupCount=max_count)
          else:
              handler = logging.StreamHandler()
          handler.setLevel(level)
          handler.setFormatter(formatter)
  
          loggers = logger if isinstance(logger, (list, tuple)) else [logger]
          for logger in loggers:
              logger.propagate = propagate
              logger.setLevel(level)
              logger.addHandler(handler)
  
      # Initialize logging by the configuration file, file_config.
      if file_config:
          logging.config.fileConfig(file_config, disable_existing_loggers=False)
  
      # Initialize logging by the dict configuration, dict_config.
      if dict_config and hasattr(logging.config, "dictConfig"):
          logging.config.dictConfig(dict_config)
  
new_contents: # -*- coding: utf-8 -*-
  
  import logging
  
  from logging.handlers import TimedRotatingFileHandler
  
  
  def init(logger=None, level="INFO", file=None, handler_cls=None,
           max_count=30, propagate=True, file_config=None, dict_config=None):
      # Initialize the argument logger with the arguments, level and log_file.
      if logger:
          fmt = ("%(asctime)s - %(process)d - %(pathname)s - %(funcName)s - "
                 "%(lineno)d - %(levelname)s - %(message)s")
          datefmt = "%Y-%m-%d %H:%M:%S"
          formatter = logging.Formatter(fmt=fmt, datefmt=datefmt)
  
          level = getattr(logging, level.upper())
  
          if file:
              if handler_cls:
                  handler = handler_cls(file, max_count)
              else:
                  handler = TimedRotatingFileHandler(file, when="midnight",
                                                     interval=1, backupCount=max_count)
          else:
              handler = logging.StreamHandler()
          handler.setLevel(level)
          handler.setFormatter(formatter)
  
          loggers = logger if isinstance(logger, (list, tuple)) else [logger]
          for logger in loggers:
              logger.propagate = propagate
              logger.setLevel(level)
              logger.addHandler(handler)
  
      # Initialize logging by the configuration file, file_config.
      if file_config:
          logging.config.fileConfig(file_config, disable_existing_loggers=False)
  
      # Initialize logging by the dict configuration, dict_config.
      if dict_config and hasattr(logging.config, "dictConfig"):
          logging.config.dictConfig(dict_config)
  
subject: Change propagate to True