Rearrange the lines to create a logger that will output log messages in ascending order based on the associated numeric value.
Logging
Debugging with a logger
Report a typo
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")
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.