asp.net - Get IIS Log data in C# module -
i writing .net module
iis log details before or after iis has been written log file .as per msdn documentation
httpapplication.logrequest event occurs before asp.net performs logging current in logrequest handler request.
so, how can log data looks below:
#software: microsoft internet information services 8.0 #version: 1.0 #date: 2014-11-27 10:42:57 #fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(user-agent) cs(referer) sc-status sc-substatus sc-win32-status time-taken 2014-11-27 10:42:57 ::1 / - 29897 - ::1 mozilla/5.0+(windows+nt+6.3;+wow64)+applewebkit/537.36+khtml,+like+gecko)+chrome/39.0.2171.71+safari/537.36- 200 0 0 42905
no , cannot iis log data in httpmodule need write custom httpmodule , make log data in same iis log data looks . cannot following fields time taken , byte sent, receive, , win32 status code in custom httpmodule.
Comments
Post a Comment