Python logging - no more print statements

Publicado el: 11 enero 2022
en el canal de: Joe Freeman: Software Craft, Org Stuff, Tech Stuff
612
7

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

Blog: https://joe.blog.freemansoft.com/2022...
GitHub sample: https://github.com/freemansoft/Networ...


En esta página del sitio puede ver el video en línea Python logging - no more print statements de Duración hora minuto segunda en buena calidad , que subió el usuario Joe Freeman: Software Craft, Org Stuff, Tech Stuff 11 enero 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 612 veces y le gustó 7 a los espectadores. Disfruta viendo!