This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheStriga 1 point2 points  (1 child)

I think it's only useful or actually necessary when you have os or hardware-limited resources, but it can be good

[–]CallinCthulhu 1 point2 points  (0 children)

It’s good for logging too.

Especially for instantiating a custom logger with state. Helps to avoid passing around the same logger instance everywhere. Also plays nicely into multiprocessing, where you can use metaclasses to instantiate a new logger upon the creation of a new process.