Ensure a valid logger is used