Stop using print! Understanding and using the "logging" module — Reuven M. Lerner
Channel: EuroPython Conference
Date: 2023-09-19

[EuroPython 2023 — South Hall 2A on 2023-07-19]
https://ep2023.europython.eu/session/stop-using-print-understanding-and-using-the-logging-module

If you're like me, then you've long known about Python's "logging" module, but you've ignored it because it seemed too complex. In this talk, I'll show you that "logging" is easy to learn and use, giving you far more flexibility than you can get from inserting calls to "print" all over your code. I'll show you how you can start to use "logging" right away -- but also how you can use it to create a sophisticated logging system that sends different types of output to different destinations. After this talk, you'll know how to use "logging", and you'll be less likely to use "print" in your applications.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-nc-sa/4.0/