'Initializes and returns our logger instance.'

def get_logger(cls):

    if (cls.logger is None):
        class NullHandler(logging.Handler, ):
            def emit(self, record):
                pass
        cls.logger = logging.getLogger('django_auth_ldap')
        cls.logger.addHandler(NullHandler())
    return cls.logger
