|Platform SDK: IIS SDK|
The AppendToLog method adds a string to the end of the Web server log entry for the request. You can use it multiple times in one section of script. Each time the method is used, it appends the specified string to the existing entry.
To record the specified string in the log file, you must enable the URIQuery option of the Extended Properties property sheet for the site whose activity you want to log. To access this property sheet, from IIS Manager, right-click the Web site, and select Properties. On the Web Site tab, verify that Enable Logging is selected, and then click Properties. Note the default settings on the Extended Properties property sheet.
The following example adds the text "content updated" to the log file:
<% Response.AppendToLog "My custom log message" %>
Platforms: Windows 2000 with IIS 5.0 installed,
Windows XP with IIS 5.1 installed,
Windows Server 2003 family with IIS 6.0 installed
|file: /Techref/language/asp/OBJ/ref_vbom_resomatl.htm, 3KB, , updated: 2003/5/15 13:13, local time: 2020/2/21 07:25,
|©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://techref.massmind.org/techref/language/asp/OBJ/ref_vbom_resomatl.htm"> Response.AppendToLog</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to techref.massmind.org!