Added authentication to logging.