Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a Loger

Status
Not open for further replies.

tedi1

Technical User
Aug 25, 2002
87
IL
Hi,

I'm running CR 8.5 by ASP pages and I would like to create a log file that will include the user details as well as the time it took to display the first report page.

How do I do this?
 
>I would like to create a log file that will include the user details as well as the time it took to display the first report page.

At the very top of your ASP page, set a variable to the current time -
Code:
StartTime = Now
.

At the very bottom of your ASP page, set another variable to the current time
Code:
StopTime = Now
.

Then use the FileSystemObject (FSO) to append the difference between the two times to a Log file (along with other details.) A thorough description of FSO is too complex write up here, but you can look it up.


Good Luck! [thumbsup2]
WindUp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top