You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as this nuget uses HttpContextAccessor to get the http context properties, it cause 404 to next incoming request as the http-method becomes empty string.
please see aspnet/KestrelHttpServer#2591 for more details.
So instead of getting the properties at logging time it would be good idea to set the properties to LogContext in a middle ware so that HttpContextAccessor wont be accessed from a background thread.
The text was updated successfully, but these errors were encountered:
thank you but this is directly logging the http request details. Not enriching the logger or log context.
I was looking for enrich the SeriLog Context so that if any part of code will log message with the request details.
as this nuget uses HttpContextAccessor to get the http context properties, it cause 404 to next incoming request as the http-method becomes empty string.
please see aspnet/KestrelHttpServer#2591 for more details.
So instead of getting the properties at logging time it would be good idea to set the properties to LogContext in a middle ware so that HttpContextAccessor wont be accessed from a background thread.
The text was updated successfully, but these errors were encountered: