How to Solve NameError: name 'basicConfig' is not defined -- logging

Solution: Import the 'basicConfig' module

# Add the following line to the top of your code
from logging import basicConfig

 

For more information:
logging basicConfig