code: def timed_rotating_file_handler(name, logname, filename, when='h',
                                  interval=1, backupCount=0,
                                  encoding=None, delay=False, utc=False):
      
  
      return wrap_log_handler(logging.handlers.TimedRotatingFileHandler(
          filename, when=when, interval=interval, backupCount=backupCount,
          encoding=encoding, delay=delay, utc=utc))
docs: A Bark logging handler logging output to a named file.  At
      intervals specified by the 'when', the file will be rotated, under
      control of 'backupCount'.
  
      Similar to logging.handlers.TimedRotatingFileHandler.