def __init__(self, verbosity='<STR_LIT>', colorlogs=False, logtofile=False,<EOL>logfilename='<STR_LIT>'):
self.log = logging.getLogger('<STR_LIT>')<EOL>self.log.setLevel(<NUM_LIT:1>)<EOL>self.handlers = {}<EOL>self.verbosity = sanitize(verbosity)<EOL>self.logfilename = logfilename<EOL>level = v2l.get(verbosity, '<STR_LIT:info>')<EOL>form  = v2f.get(verbosity, '<STR_LIT>')<EOL>color = '<STR_LIT>' if colorlogs else '<STR_LIT>'<EOL>if logtofile:<EOL><INDENT>self.add_handler(<EOL>name='<STR_LIT>', level=level, formatter=form,<EOL>filename=self.logfilename<EOL>)<EOL><DEDENT>self.add_handler(name=color, level=level, formatter=form)<EOL>
Create a new logger class. Since the logging interface is actually global,
any new logs will create even more clutter on the screen. Therefore,
only create one! (as is created at the bottom of this file)