docs: def analyze_log(fp, configs, url_rules):
      """Analyze log file"""
      url_classifier = URLClassifier(url_rules)
      analyzer = LogAnalyzer(url_classifier=url_classifier, min_msecs=configs.min_msecs)
      for line in fp:
          analyzer.analyze_line(line)
      return analyzer.get_data()