ASP Response Object : AppendToLog Method

The AppendToLog method adds a string to the end of the web server log entry for this request. The method can be called multiple times in a script. Each call appends the specified string to the existing entry.

The method takes one mandatory argument:

  • String - The text to append to the log file. Cannot contain any comma characters (,) because fields in the log file are comma-delimited.


  <% Response.AppendToLog("Database Error") %>
This code would cause "Database Error" to be appended to the end of the IIS log file (if logging is enabled in the IIS properties).

Back to the ASP Response Object
Back to ASP Objects

All code is my own (and is much nicer in real life).