Simple logging - set level



examples/logging/simple_logging_set_level.py
import logging
 
logging.basicConfig(level = logging.INFO)
 
logging.debug("debug") 
logging.info("info") 
logging.warning("warning") 
logging.error("error")
logging.critical("critical")

INFO:root:info
WARNING:root:warning
ERROR:root:error
CRITICAL:root:critical