Python logging - no more print statements

preview_player
Показать описание
The Python logging package should be used wherever print() statements were in the past. The logging package makes it possible to classify output at different severities. logging has the ability to enable and disable the generation of output at those different levels. This means you can create debug-level statements that are useful to programmers without letting those statements bleed into a production application. The referenced GitHub project shows how to load logging configurations, and how to change where logging goes based on those configurations.

Classify output by severity
Filter output generation by severity
Send data to different sinks based on the program module and the severity

Рекомендации по теме
Комментарии
Автор

I'm a junior dev and this video really helped me! thank you! :)

marcanita
Автор

Really nice and instructive video. Thank you!

geeklogbook
Автор

It would be nice to show how to also log to Azure Application Insights

cptechno
welcome to shbcf.ru