Setup logging. Added logging for authentication setup.