Initializing logger in python unit test
===

    import logging

    class TestMyClass(unittest.TestCase):
           def __init__(self):
                self.logger = logging.getLogger('MyClassLog')
    
           def setUp(self):

 

I am trying to instantiate the logger in the constructor. But I get this error:
            ...
TypeError: __init__() takes exactly 1 argument (2 given)

Why is this? How to instantiate logger correctly?