def set_tag(self, name, tag_class):
<EOL>if name in self._tags:<EOL><INDENT>self._log.warn('<STR_LIT>'.format(tag=name))<EOL><DEDENT>if not issubclass(tag_class, Tag):<EOL><INDENT>self._log.error('<STR_LIT>'<EOL>'<STR_LIT>'.format(tag=name))<EOL>return<EOL><DEDENT>self._tags[name] = tag_class<EOL>
Define a new tag parser method
:param name: The name of the tag
:type  name: str

:param tag_class: The Tag class, this must be a subclass of base parser.tags.Tag
:type  tag_class: Tag