HttpResponse.AppendToLog Method
.NET Framework 3.0
Adds custom log information to the Internet Information Services (IIS) log file.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
HttpResponse Members
System.Web Namespace
Windows Server 2003 Product Help
Assembly: System.Web (in system.web.dll)
In order to allow for the specified string to be recorded in the log file, you first must enable the URI Query option of the Extended Logging Properties dialog box for the site that you want to log activity for in IIS.
To customize extended logging in IIS 6.0:
-
In IIS Manager, expand the local computer node, expand the Web or FTP Sites folder, right-click the Web or FTP site, and then click Properties.
-
Click the Web or FTPSite tab, and then select the Enable logging check box (if it is not already selected).
-
In the Active log format box, click W3C Extended Log File Format.
-
Click Properties.
-
Click the Advanced tab, and then select the properties you want to log.
-
Click OK.
Reference
HttpResponse ClassHttpResponse Members
System.Web Namespace
Other Resources
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/windowsserv/2003/standard/proddocs/en-us/log_aboutlogging.aspWindows Server 2003 Product Help
Community Additions
ADD
Show: