xxxxxxxxxx
# Are you sure you are importing
import logging
# not
import logger
-----------------------------------------------------------
# logger and logging(preinstalled) are different libraries
# so if you really meant to import logger and you get the
# ModuleNotFoundError then first try to install it
pip install logger