'set file handler
:param level:
:return:'

def __setFileHandler__(self, level=None):

    file_name = os.path.join(LOG_PATH, '{name}.log'.format(name=self.name))
    file_handler = TimedRotatingFileHandler(filename=file_name, when='D', interval=1, backupCount=15)
    file_handler.suffix = '%Y%m%d.log'
    if (not level):
        file_handler.setLevel(self.level)
    else:
        file_handler.setLevel(level)
    formatter = logging.Formatter('%(asctime)s    %(filename)s[line:%(lineno)d]    %(levelname)s    %(message)s')
    file_handler.setFormatter(formatter)
    self.file_handler = file_handler
    self.addHandler(file_handler)
