'This function should digest the contents of one line at a time, updating
object\'s state variables. Takes a single argument, the line to be parsed.'

def parse_line(self, line):

    try:
        regMatch = self.reg.match(line)
        if regMatch:
            linebits = regMatch.groupdict()
            log_level = linebits['log_level']
            if (log_level in self.levels):
                current_val = getattr(self, log_level)
                setattr(self, log_level, (current_val + 1))
        else:
            raise LogsterParsingException('regmatch    failed    to    match')
    except Exception as e:
        raise LogsterParsingException(('regmatch    or    contents    failed    with    %s' % e))
