I have a class that has a logger instance variable, and I am creating another class inside of that and I want to use the logger instance variable inside of that class, but not sure how to call it.
Example Code:
class A():
def __init__(self):
self.logger = Logger.get() #this works fine didn't include the Logger class
def func(self):
class B():
def __init__(self):
self.a = 'hello'
def log(self):
#How do I call A's logger to log B's self.a
#I tried self.logger, but that looks inside of the B Class