def logger(self):
        """
        The logger for this class.
        """
        # This is internal/CPython only/etc
        # It's also astonishingly faster than alternatives.
        frame = sys._getframe(1)
        file_name = frame.f_code.co_filename

        module_name = _get_module(file_name)
        return logging.getLogger(module_name)
def logger ( self ) : frame = sys . _getframe ( 1 ) file_name = frame . f_code . co_filename module_name = _get_module ( file_name ) return logging . getLogger ( module_name )
The logger for this class.