Understanding Python: Logging Basics

  Рет қаралды 1,113

Jake Callahan

Jake Callahan

Күн бұрын

Пікірлер: 10
@JakeCallahan
@JakeCallahan 9 ай бұрын
Logging is a large subject! Is there anything you'd specifically like to know, or something you find difficult?
@josipsadek4425
@josipsadek4425 2 ай бұрын
Hey, to me it is unclear how to use logging when we have multiprocessing involved. I would love of you could cover that or point me to good quality resource that goes deep on this. Love your videos btw
@JakeCallahan
@JakeCallahan 2 ай бұрын
Multiprocessing adds a complication for simple logging, since there is a strong possibility of race conditions. What I would recommend is to aopend an id to your log file name for each subprocesses. This makes it easier to identify what each is doing independent of each other and the main process.
@taft-rh
@taft-rh 9 ай бұрын
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.
@dragonkat13
@dragonkat13 9 ай бұрын
another great video! love your intro! smooth and well done!
@waldirio
@waldirio 9 ай бұрын
Amazing video, my dear friend! Congrats!! 😉👍
@DiptonilRoy
@DiptonilRoy 7 ай бұрын
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.
@duke007x3
@duke007x3 9 ай бұрын
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.
@JakeCallahan
@JakeCallahan 9 ай бұрын
For most of my work/personal projects, I use logzero. However, that project is no longer maintained, so will eventually die off. I have looked into loguru as an alternative and it does look promising. However, I'd really have to look into it's features before adopting over my own custom-built logging solution, since I tend to like to do things myself! If you do try it out, please follow up with your thoughts on it, I'd be very interested in what you think.
@cook5992
@cook5992 8 ай бұрын
"Promosm" 👏
Understanding Python: Debugging
16:35
Jake Callahan
Рет қаралды 592
Understanding Python: namedtuples
20:06
Jake Callahan
Рет қаралды 514
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 51 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 23 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 59 МЛН
Understanding Python: Asyncio
19:43
Jake Callahan
Рет қаралды 4,3 М.
Understanding Python: String Manipulation
24:10
Jake Callahan
Рет қаралды 356
Python 3.13 vs. Julia 1.11 with Word Frequencies
5:56
EKB PhD
Рет қаралды 1,5 М.
Modern Python logging
21:32
mCoding
Рет қаралды 207 М.
A guided tour of Python logging
28:41
PyCon AU
Рет қаралды 17 М.
Python Standard Library: JSON
17:54
Jake Callahan
Рет қаралды 398
Understanding Python: Concurrent Coroutines
21:38
Jake Callahan
Рет қаралды 2,1 М.
Python Standard Library: Pathlib
23:46
Jake Callahan
Рет қаралды 1,4 М.
Now I Know Why Most People Don’t Use gRPC
19:11
ArjanCodes
Рет қаралды 49 М.
Python Standard Library: OS
19:46
Jake Callahan
Рет қаралды 867
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 51 МЛН