Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Write Better Python Buggy Logs Log Messages

Message log?

I watched the video twice and I don't see where he logs a message. Kind of seems like a lot of info was skipped when moving into this module. I haven't been totally stumped yet but I have no idea what this is asking me to do.

starter.py
import logging

logging.basicConfig(filename='cc.log', level=logging.DEBUG)

# Write your code below here

1 Answer

Rick Gleitz
Rick Gleitz
47,160 Points

Hi Mat,

Kenneth does a message log at about the 5:00 minute mark in the previous video. He does it with a level of .info, but just substitute .debug and add any string you want in the parentheses.

Hope this helps!