Is there a common pattern to follow to correctly subclass logging.Logger?
import logging
class MyLogger(logging.Logger):
__init__(self, name):
super().__init__(name=name)
Does not seem to work property, as MyLogger created this way has no reference to its parent. Although I could manually set its parent, but am afraid that maybe there are other protocols of loggging.Logger not satisfied as well by MyLogger?