My GitHub is WalthrustN. In a path = my_Python_project/Logging/HelperLog.py, I am trying to figure out why the code doesn't log info levels to the console. Its weird because it logs all other levels + when I import the file with another project. It manages to log the level then. I am confused. Please help. email = [email protected]
https://github.com/WalthrustN/my_Python_project/blob/n/Logging/HelperLog.py
`````````````python``````````````````````````````````
enter code here
import logging
#create own internal logger (not the root logger)
enter code here
logger = logging.getLogger(name)
enter code here
logger.propagate = False
enter code here
logger.info('hello from helper')
# Propagate: Decides whether a log should be propagated
to the logger's parent
Custom loggers can not be modified with
basicConfig()
.You can either use the root logger, e.g using logging.warning().
or add a
StreamHandler