(line, match_strings)
| 98 | |
| 99 | |
| 100 | def _match(line, match_strings): |
| 101 | for level, match_strings in six.iteritems(match_strings): |
| 102 | for match_string in match_strings: |
| 103 | if line.startswith(match_string): |
| 104 | # print('Line: %s, match: %s' % (line, match_string)) |
| 105 | return True, level, line |
| 106 | return False, "UNKNOWN", line |
| 107 | |
| 108 | |
| 109 | def _detect_log_lines(fil, matchers): |