#NEWLINE# def _detect_log_lines( fil , matchers ) : #NEWLINE# #INDENT# global FILE_LOG_COUNT #NEWLINE# FILE_LOG_COUNT [ fil ] = dict ( _get_log_count_dict ( ) ) #NEWLINE# with open ( fil ) as f : #NEWLINE# #INDENT# lines = f . readlines ( ) #NEWLINE# FILE_LINE_COUNT [ fil ] = len ( lines ) #NEWLINE# ln = 0 #NEWLINE# for line in lines : #NEWLINE# #INDENT# l = line . strip ( ) #NEWLINE# ln += 1 #NEWLINE# ( matched , level , line ) = _match ( l , matchers ) #NEWLINE# if matched : #NEWLINE# #INDENT# FILE_LOG_COUNT [ fil ] [ level ] += 1