"Thomas Scheiderich" wrote:
: Thomas Scheiderich wrote:
:
: > I am trying a script to write to the log and the script is:
: >
: > ************************************************** ********
: > <HTML>
: > <HEAD>
: > <TITLE>Add a Log Entry</TITLE>
: > </HEAD>
: >
: > <BODY>
: > <H3>Add a Log Entry</H3>
: > This example adds the path of the Web page
: > to the log file on the Web server.
: >
: > <%
: > Response.AppendToLog"######## Start Log ########"
: > Response.AppendToLog
Server.MapPath(Request.ServerVariables("PATH_INFO" ))
: > Response.AppendToLog"######## Start Log ########"
: > %>
: > </BODY>
: > </HTML>
: > ************************************************** ********
: >
: > The program seems to run ok, but nothing seems to be put in the log.
: >
: > Am I missing something here?
:
:
: I looked at my log and here is what is in it:
:
: ************************************************** ********
: 18:48:58 192.168.122.11 GET /addLogEntry.asp 200
: 18:51:37 192.168.122.11 GET /addLogEntry.asp 200
:
: ************************************************** *******
:
: So obviously the log is getting written to. Why is mine not getting
: written?
Microsoft says, "In order for the specified string to be recorded in the log
file, you must enable the URI Query option of the Extended Logging
Properties sheet for the site whose activity you wish to log."
W2K:
http://www.microsoft.com/windows2000...re/iiconlg.htm
W2K3:
http://www.microsoft.com/technet/tre..._customw3c.asp
Other:
http://iishelp.web.cern.ch/IISHelp/i...re/iilogsa.htm
HTH...
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp