4 ms·
If you want lots of detail (which, eventually, you should), then those absolutely do a great job. But if you want a quick-and-dirty intro just to get down to bu
by kylemaxwell 15y ago
If you want lots of detail (which, eventually, you should), then those absolutely do a great job. But if you want a quick-and-dirty intro just to get down to business, then this sort of post does a great job. I mean, clearly it's benefited some folks, so it serves some good purpose, right? :)
- slug 15y agoWhat's wrong is giving slightly bad suggestions, like keeping a global 'logger' variable. There's absolutely no need to do that, just use a import logging ; getLogger(__name__) for example. I usually have something like self.logger = logging.getLogger(__name__) on my classes __init__() within project/package (sub)modules .