parameters: (self, line)
docstring: :param line: syslog line
          :type line: str
          :return: the message id and the rest of the syslog line
          :rtype: tuple [ int, str ]
docstring_summary: :param line: syslog line
          :type line: str
          :return: the message id and the rest of the syslog line
          :rtype: tuple [ int, str ]
docstring_tokens: : param line : syslog line : type line : str : return : the message id and the rest of the syslog line : rtype : tuple [ int str ]
function: def get_message_id(self, line):
          """
          :param line: syslog line
          :type line: str
          :return: the message id and the rest of the syslog line
          :rtype: tuple [ int, str ]
          """
          # line may start:
          #    <166>:%ASA-session-6-302015: ...
          #       or
          #    <166>%ASA-6-302015: ...
          match = ASASyslogImporter.message_regex.match(line)
          if match:
              return int(match.group(1)), match.group(2)
          else:
              return None, line
function_tokens: def get_message_id ( self , line ) : # line may start: #    <166>:%ASA-session-6-302015: ... #       or #    <166>%ASA-6-302015: ... match = ASASyslogImporter . message_regex . match ( line ) if match : return int ( match . group ( 1 ) ) , match . group ( 2 ) else : return None , line