I'm trying to turn on Logging to Disk. I'm using an ASCII file and have entered the file information in the WebServer logging extension. However when I do that, the log file is never created (and no log file records as well obviously).
I then added code in the AddLog procedure to manually create the record. However it only creates the first entry and then stops adding records after that.
Any suggestions as to what's going on and how to resolve it? Here is my code where the record is added:
! Start of "Before Adding to Log Queue"
! [Priority 5000]
!Before add to Log Que
If web:EnableLogging = 2
Clear(WebLogFile:Record)
Log:Line = format(Today(),@D3)&format(Clock(),@T3)&' -- '&clip(p_Data)&','&p_ip
Access:WebLogFile.Insert()
end
! End of "Before Adding to Log Queue"
Add(LogQueue,1)
Loop While Records(LogQueue) > 500
Get(LogQueue,501)
Delete(LogQueue)
End
Thanks,
Kurt