LOG_PATH = os.path.abspath(os.path.join(os.getcwd(), "..", "logs")) logging.basicConfig(level=logging.DEBUG, filename=os.path.join(LOG_PATH, 'output.log'), datefmt='%Y/%m/%d %H:%M:%S', format='%(asctime)s - %(name)s - %(levelname)s - %(lineno)d - %(module)s - %(message)s')