import logging logging.basicConfig(level=logging.ERROR, filename="timelogger.log")