473,503 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP log entry

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?

Thanks,

Tom.

Jul 19 '05 #1
5 1972
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?

Tom

Thanks,

Tom.


Jul 19 '05 #2
On Tue, 27 Jan 2004 10:37:42 -0800, Thomas Scheiderich
<tf*@deltanet.com> wrote:

The Syntax I have shown to do this is:

Response.AppendToLog("Log Message")

Also, what version of IIS?

Jeff
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?

Tom

Thanks,

Tom.


Jul 19 '05 #3
"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

Jul 19 '05 #4
Jeff Cochran wrote:
On Tue, 27 Jan 2004 10:37:42 -0800, Thomas Scheiderich
<tf*@deltanet.com> wrote:

The Syntax I have shown to do this is:

Response.AppendToLog("Log Message")

Also, what version of IIS?

I'm not really sure. I am running Windows 2K. Where would I look to
find out? In Sevices I find - World Wide Web Publishing Service, but no
version. I am used to using it on NT4, but it is not in the programs
menu here.

Thanks,

Tom

Jeff

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?

Tom

Thanks,

Tom.


Jul 19 '05 #5
On Wed, 28 Jan 2004 09:42:06 -0800, Thomas Scheiderich
<tf*@deltanet.com> wrote:
Jeff Cochran wrote:
On Tue, 27 Jan 2004 10:37:42 -0800, Thomas Scheiderich
<tf*@deltanet.com> wrote:

The Syntax I have shown to do this is:

Response.AppendToLog("Log Message")

Also, what version of IIS?

I'm not really sure. I am running Windows 2K. Where would I look to
find out? In Sevices I find - World Wide Web Publishing Service, but no
version. I am used to using it on NT4, but it is not in the programs
menu here.


Windows 2000 runs IIS5. Though I'm not actually sure this matters.
Assuming you enabled the URI Query mentioned in another post, one
issue I though might be involved was permissions to write to the file
for the IUSR/IWAM account.

Jeff
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?

Tom
Thanks,

Tom.


Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6215
by: Michael Onfrek | last post by:
Hi, is copy, paste, cut of selection possible in entry widget? Docs say selection must be copied by default, in my programm it doesn't work. Regards, M.O.
7
18230
by: Michael Onfrek | last post by:
Hi! I'm playing with entry again and trying to restrict length of entry widget to certain number of character, so users cannot enter more character into it. Any ideas? Reg. Michael Onfrek
2
1913
by: Ian Vincent | last post by:
I am hoping someone may be able to help. I am using Python and TKinter to create a GUI program that will eventually create an XML file for a project I am working on. Now, the XML file contents...
14
8385
by: Vijay Kumar R Zanvar | last post by:
I have following questions: 1. Appendix C of K&R says: Trigraph sequences introduced by ?? allow representation of characters lacking in some character sets. ... Can somebody explain how...
10
4141
by: Lung.S.wu | last post by:
Hi all, It is a history question. Recently, I read the book "C A reference manual, third edition". In this book, it list all C language keyword, and one is "entry". I know it is omitted from...
20
6880
by: hippomedon | last post by:
Hello everyone, I'm looking for some advice on whether I should break the normalization rule. Normally, I would not consider it, but this seems to be a special case. I have created an...
0
1188
by: sajithamol | last post by:
<env-entry> <env-entry-name>com/speedRate</env-entry-name> <env-entry-type>java.lang.Integer<env-entry-type> < env-entry-value>10</env-entry-value> </env-entry>
1
1786
by: admin.offshoredataentry | last post by:
Data Entry Outsourcing provides time bound, cost effective and qualitative Data Entry also provides numeric data entry, textual data entry, image data entry, data format, data conversion and also...
1
2171
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
2
4762
by: ketty_ng81 | last post by:
No matter how many dial up networking entries I have, the RASWrapper.RasEnumEntries(null , null , entryNames, ref cb, out entries); always returns the right number of elelments in entryNames but...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.