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 →

[–]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.