|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 14:13, local time: 2019/5/19 20:36,
|©2019 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://www.piclist.com/techref/language/asp/obj/ref_vbom_resomatl.htm"> Response.AppendToLog</A>
|Did you find what you needed?|
PICList 2019 contributors:
o List host: MIT, Site host massmind.org, Top posters @20190519 RussellMc, David Van Horn, AB Pearce - UKRI STFC, Bob Blick, David C Brown, Allen Mulvey, Dwayne Reid, James Cameron, Jason White, Neil,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!