HostingRequestFinishedLog captures HttpContext for its values and resolves them from that.
If the logging happens lazily/out-of-line with the request (ConsoleLogger for example queues them) then the logging can happen outside of the request and the values be incorrect or reading them cause a race condition.
HostingRequestFinishedLogcapturesHttpContextfor its values and resolves them from that.If the logging happens lazily/out-of-line with the request (ConsoleLogger for example queues them) then the logging can happen outside of the request and the values be incorrect or reading them cause a race condition.