Fix logging introducing a get_logger function

Code stolen from django-auth-ldap