Debugging with a logger

Report a typo

Rearrange the lines to create a logger that will output log messages in ascending order based on the associated numeric value.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                logging.warning("Don't worry, nothing bad happened, yet!")
              
                logging.error("You should find that error before is getting critical!")
              
                logging.info("You've got it! Now you know how to log!")
              
                import logging
              
                logging.debug("Can you see the errrror?")
              
                logging.basicConfig(level="DEBUG", format="%(levelname)s -> %(message)s")
              
___

Create a free account to access the full topic