Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sat, 15 Apr 2006 13:11:34 -0500,    group: microsoft.public.platformsdk.internet.server.isapi-dev        back       


Getting specific data members for output to a log file   
I'm trying to write a Filter that handles writing a W3C-compliant log file 
based on a special set of criteria.  I have found most of the needed 
information in GetServerVariables(), but I still need the following things:

sc-status: The status code returned by the server on the request (i.e. 200 
if the HTTP request was OK)

sc-substatus: Substatus code, it's an entry in the current IIS log files and 
I'd like to keep it

sc-win32-status: Appears to always be 0, but I'll keep it if I can.

sc-bytes: The number of bytes sent back to the client as the response.

time-taken: The amount of time it took IIS internally to process and 
complete the request.

If anyone can help me with the necessary calls to get these values, that 
would be wonderful.  They are values in the normal IIS log files when W3C is 
selected, so I feel like they must be available.

Thanks,
Jacob
date: Sat, 15 Apr 2006 13:11:34 -0500   author:   Jacob Arthur am

Re: Getting specific data members for output to a log file   
http://blogs.msdn.com/david.wang/archive/2006/04/15/HOWTO_Get_Field_Data_for_Custom_Logging_with_ISAPI_Filter.aspx

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Jacob Arthur" <jacobats@community.nospam> wrote in message 
news:%23P0mJgLYGHA.3684@TK2MSFTNGP05.phx.gbl...
> I'm trying to write a Filter that handles writing a W3C-compliant log file 
> based on a special set of criteria.  I have found most of the needed 
> information in GetServerVariables(), but I still need the following 
> things:
>
> sc-status: The status code returned by the server on the request (i.e. 200 
> if the HTTP request was OK)
>
> sc-substatus: Substatus code, it's an entry in the current IIS log files 
> and I'd like to keep it
>
> sc-win32-status: Appears to always be 0, but I'll keep it if I can.
>
> sc-bytes: The number of bytes sent back to the client as the response.
>
> time-taken: The amount of time it took IIS internally to process and 
> complete the request.
>
> If anyone can help me with the necessary calls to get these values, that 
> would be wonderful.  They are values in the normal IIS log files when W3C 
> is selected, so I feel like they must be available.
>
> Thanks,
> Jacob
>
date: Sat, 15 Apr 2006 17:27:05 -0700   author:   David Wang [Msft]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us