Suppose we have 3 classes, 2 parent and 1 child that inherits from both parents:
import logging
class A:
def __init__(self):
self.parent_logger = logging.getLogger("parent")
class B:
def __init__(self):
self.parent_logger = logging.getLogger("parent")
class C(A, B):
def __init__(self):
A.__init__(self)
B.__init__(self)
test_class = C()
test_class.parent_logger.info("sample")
Which class does the parent_logger get used from when instantiating class C and calling parent logger on it?