public ActionResult GetLatestCar() { //it can be anything i am using some random value as context variable using (LogContext.PushProperty("ApiRequestId", Guid.NewGuid())) { _logger.LogInformation("Inside Controller: User request to fetch the Favorite car"); var cars = _dummyService.GetLatestCars(5); return(Ok(cars)); } }