first_logger = logging.getLogger('first')
first_logger.parent = False


class Foo:

    def __init__(self):
        self.logger = logging.getLogger('first.Foo')

def baz(self):
    self.logger.info("I'm in baz")
second_logger = logging.getLogger('first.second')
abstract_logger = logging.getLogger('abs')
abstract_logger.parent = False
third_logger = logging.getLogger('abs.third')
fourth_logger = logging.getLogger('abs.fourth')
Setting up advanced Python logging