logging.basicConfig(filename='keylog.txt', level=logging.INFO)