This ensures that each instance of a controller object has its own logger.