class myFileHandler(logging.FileHandler):

    def __init__(self, path, fileName, mode):
        r = random.randint(1, 100000)
path = path + '/log_' + str(r)
Dynamic filepath & filename for FileHandler in logger config file in python