Concepts: Logging and Debugging¶
Short essays on why logging and debugging look the way they do in Python — the "ah, that's why" layer beneath the syntax. Read these once and they'll save you from a lot of head-scratching later.
Essays in this section¶
- Understanding log levels — what
DEBUG,INFO,WARNING,ERROR, andCRITICALactually mean, and how to choose between them. - Why logging beats
print— the case for reaching forloggingas soon as your code outgrows a scratch script.