Python module module _logging

loggin log grading

Import logging 
logging.debug ( " Debug the Message " ) # No printout 
logging.info ( " info the Message " ) # No printout 
logging.warning ( " warning the Message " ) # There 
logging.error ( " error the Message " ) # There 
logging.critical ( " Critical the Message " ) # there 
# Why the warning began to be printed, because the logging is hierarchical, the default is more than just print out the warning level

 

Guess you like

Origin www.cnblogs.com/iamjames/p/11279962.html