Understanding Python: Logging Basics

preview_player
Показать описание
#python #pythontutorial #pythontutorialforbeginners
So you wrote a great program that runs silently until all of a sudden {crash!} it drops an exception. You want to know what led up to this error, but scattering print statements isn't going to cut it. That's when you need to turn to logging, stick with me and you'll learn everything you need to reveal your program's runtime mysteries.

As always, please comment below if you have any questions or suggestions for future videos.

Chapters
00:50 - Getting Started
06:34 - Formatting

Intro music: 失望した by Eva
Outro music: Elix by Synthness
Рекомендации по теме
Комментарии
Автор

Logging is a large subject! Is there anything you'd specifically like to know, or something you find difficult?

JakeCallahan
Автор

another great video! love your intro! smooth and well done!

dragonkat
Автор

GREAT VIDEO! I've put off diving into the specifics of logger for a while now as it wasn't really a priority. Looks like you did all the heavy lifting for me!
Suggestion: It would have been cool to see an example of implementing a application argument via argeparse to set the default log level.

taft-rh
Автор

Amazing video, my dear friend! Congrats!! 😉👍

waldirio
Автор

I was wondering if there are any particular benefits to writing class-based loggers. Also, how to do them 'right'...
Would love to see something on that subject.

DiptonilRoy
Автор

Hi, Jake and thanks as always.
Have you tried loguru instead of builtin logging? if yes, what is your opinion on it? looks like it is much simpler for configuration.

dukex
join shbcf.ru