def add_handler(self, name='<STR_LIT>', level='<STR_LIT:info>', formatter='<STR_LIT>', **kwargs):
<EOL>if name == '<STR_LIT>' and '<STR_LIT:filename>' not in kwargs:<EOL><INDENT>kwargs.update({'<STR_LIT:filename>': self.logfilename})<EOL><DEDENT>if name == '<STR_LIT>' and '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs.update({'<STR_LIT>': StringIO.StringIO()})<EOL><DEDENT>handler = types[name](**kwargs)<EOL>self.add_handler_raw(handler, name, level=level, formatter=formatter)<EOL>
Add another handler to the logging system if not present already.
Available handlers are currently: ['console-bw', 'console-color', 'rotating-log']