Retrieve IIS log parameter value from HTTP-Request/Response object

荒凉一梦 提交于 2019-12-01 10:43:42

问题


I want to write custom log for my application similar to IIS log using .net core. For below fields I am not able to retrieve information from HTTP-Request/Response object.

Parameter :

. Service Name and Instance Number (s-sitename) . User Name (cs-username) . Cookie (cs - Cookie) . Protocol Substatus(sc substatus) . Win32 Status(sc-win32-status) . Bytes Sent (sc-bytes ) . Bytes Received (cs-bytes)

apart from above fields, I have able to extract other fields information. Example: [Server Name, Protocol Version etc]

Information regarding position of above fields inside [HTTP-Request/Response] object or .net core code to extract this information is required.

来源:https://stackoverflow.com/questions/55794873/retrieve-iis-log-parameter-value-from-http-request-response-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!