June 2019
Beginner to intermediate
770 pages
19h 24m
English
When we have a large number of classes that all need a logger, it can be handy to centralize the feature in a single definition. There are a number of ways of doing this, one of which is to provide a metaclass definition that builds a class-level logger shared by all instances of the class.
The recipe has the following three parts:
The following is an example metaclass, ...
Read now
Unlock full access