Welcome to the Treehouse Community
Looking to learn something new?
Nenad Ristov4,647 Points
Log "The French have the Grail" as a WARNING level message.
What's wrong? It shows me: Try Again
import logging logging.basicConfig(filename='cc.log', level=logging.DEBUG, level=logging.WARNING) logging.debug("I hope I pass Python") logging.warning("The French have the Grail")
Try to use
logging.warn("Text as you want")