Learn logging with free notebooks
7 free video lessons that use logging, each with a downloadable Jupyter notebook and, where needed, the dataset. Learn logging by working through real examples.
About these logging lessons
These 7 lessons come from 5 different courses, so you see logging used in several settings. The course with the most logging lessons is Python standard library deep dive (2 lessons). 2 of the lessons include a real dataset to practise on.
logging is most often used here together with pytest, pathlib, JSON and subprocess.
Watch the video, then run the notebook yourself: changing the code and re-running it is the fastest way to learn.
Courses that use logging
- Python standard library deep dive – 2 lessons
- Pytest deep dive – 2 lessons
- Python Beginner Course – 1 lesson
- Python for Banking and Finance – 1 lesson
- Python library centre – 1 lesson
59 minPython Debugging for Beginners: Read Errors, Fix Bugs, Write Tests (Beginner Python Course, Part 5)
15 minPython logging Explained: Loggers, Handlers & Formatters | Standard Library #13
18 minBuild a Python CLI Tool from Scratch | Standard Library Capstone #25

pytest Tutorial #14: Capturing Output & Logs

pytest Tutorial #18: Capstone — Testing a Real Package End to End
21 minEffective Error Handling in Banking Systems Using Python for Secure Financial Software
20 minMastering Polars for Efficient Big Data Analysis in Python
Frequently asked questions
Where should I start learning logging?
Start with “Python Debugging for Beginners: Read Errors, Fix Bugs, Write Tests (Beginner Python Course, Part 5)”, then work through the Python standard library deep dive course.
Are these logging lessons free?
Yes. Every video, notebook and dataset on this site is free to use for learning.
Can I run the logging notebooks without installing Python?
Yes. Open them in Google Colab, or use the Run in browser button where a lesson has one.