从HTTP请求/响应对象中检索IIS日志参数值

时间:2019-04-22 13:03:33

标签: iis .net-core httprequest httpresponse asp.net-core-2.2

我想使用 .net核心为我的应用编写类似于IIS日志的自定义日志。 对于以下字段,我无法从 HTTP-Request / Response 对象获取信息。

参数:

. 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)

除上述字段外,我还能够提取其他字段信息。 例如:[服务器名称,协议版本等]

需要上述字段在[HTTP-Request / Response]对象或.net核心代码中的位置信息以提取此信息。

0 个答案:

没有答案
相关问题