Audit log in livecode server
Posted: Wed Dec 12, 2018 3:56 pm
Hi All,
Can anyone can point me the way to write a audit log in livecode server which host in hostm.com ?
I try to use the following method, but I don't know where is the correct path to save the file and don't know whether it is work or not.
function httpsapi.init
addlog($_post_raw)
end httpsapi.init
on addlog prequest
put "some data" into url "file:../hostname.com/textfile.txt" // which is failed
put specialfolderpath("Temporary") & "textfile.txt" into alogfile
open file alogfile for append
wirte the english date & tab & preuest & return to file alogfile
close file alogfile
end addlog
Regards
Terry Ho
Can anyone can point me the way to write a audit log in livecode server which host in hostm.com ?
I try to use the following method, but I don't know where is the correct path to save the file and don't know whether it is work or not.
function httpsapi.init
addlog($_post_raw)
end httpsapi.init
on addlog prequest
put "some data" into url "file:../hostname.com/textfile.txt" // which is failed
put specialfolderpath("Temporary") & "textfile.txt" into alogfile
open file alogfile for append
wirte the english date & tab & preuest & return to file alogfile
close file alogfile
end addlog
Regards
Terry Ho