If you are familiar with Asp you could a scripting object (TextStream object) to create a log file.
Use this code as a server side include file
<%
Const ForAppending = 8
Dim strLogFileName
strLogFileName = "c:\....." 'your path here
dim objlogFile
set objlogFile = createObject("Scripting.FileSystemObject"
Dim objLogFileTS
If objLogFile.FileExists(strLogName) Then
Set oblLogFileTS = objLogFileFSO.OpenTextFile(strLogFileName, ForAppending)
Else
Set objLogFileTS = objLogFileFSO.CreateTextFile(strLogFileName)
End if
'the following subroutine will write the information into your log file
sub WriteToLog(strNewEntry)
Dim strLogEntry
strLogEntry = formatDateTime(now) & "-"
strLogEntry = strLogEntry & strNewEntry
objLogFiltTS.WriteLine strLogEntry
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.