import logging from config import LOG_FILE logging.basicConfig( filename=LOG_FILE, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)