code: def watched_file_handler(name, logname, filename, mode='a', encoding=None,
                           delay=False):
      
  
      return wrap_log_handler(logging.handlers.WatchedFileHandler(
          filename, mode=mode, encoding=encoding, delay=delay))
docs: A Bark logging handler logging output to a named file.  If the
      file has changed since the last log message was written, it will
      be closed and reopened.
  
      Similar to logging.handlers.WatchedFileHandler.