sharan.basappa at gmail.com
Sun Jul 1 09:05:48 EDT 2018
I am trying to use logging module and somehow I cannot make it work.
A simple code that I am trying is below. The commented code line 5,6 are other options I have tried but don't work
#Create and configure logger
#Creating an object
#Setting the threshold of logger to DEBUG
logger.debug("Harmless debug Message")
logger.info("Just an information")
logger.warning("Its a Warning")
logger.error("Did you try to divide by zero")
logger.critical("Internet is down")
PS: I am running this under Enthought Canopy
The following is the output
%run "D:/Projects/Initiatives/machine learning/programs/debug_4.py"
More information about the Python-list