def addFileHandler(self,filename='<STR_LIT>', dr='<STR_LIT>',lvl=<NUM_LIT:1>):
fname = self.name<EOL>if filename != '<STR_LIT>':<EOL><INDENT>fname = filename<EOL><DEDENT>if '<STR_LIT:.>' not in fname:<EOL><INDENT>fname+='<STR_LIT>'<EOL><DEDENT>fh = logging.FileHandler(os.path.join(dr,fname))<EOL>fh.setLevel(lvl)<EOL>frmtString = '<STR_LIT>'<EOL>fFrmt = logging.Formatter(frmtString)<EOL>fh.setFormatter(fFrmt)<EOL>self.addHandler(fh)<EOL>
This function will add a file handler to a log with the provided level.

Args:
    lvl (int): The severity level of messages printed to the file with 
                the file handler, default = 1.