3 ms·
Thanks. I like the idea of classes masquerading as functions. And easier configuration. I had actually started writing this 2 days ago as something just for me,
by peter_l_downs 15y ago
Thanks. I like the idea of classes masquerading as functions. And easier configuration. I had actually started writing this 2 days ago as something just for me, but after reading this decided to try something new.
- jacobolus 15y agoWith something that can happen as often as logging, make sure that you test it when accessed from multiple python threads, and pound the crap out of it in various typical configurations. Python’s default logging can be a real dog, and at least in one project I was working on a few years ago turned out to be a real bottleneck.
- teyc 15y agoAlso keep the following in mind. You don't need to use Singletons in Python. The following code smells in Python. log.getLogger() use a module instead.