PDA

View Full Version : Quick and Easy Server Side Tracing



jonc113
2014-12-04, 16:29
I made this simple server-side script to make tracing easy. It makes it's own log file on-the-fly.
Here it is:



procedure serverlog
parameter plogtext
curarea = select()

if !file("serverlog.dbf")
create table serverlog ;
(timestamp datetime , logentry char(100))
add table serverlog
endif
if !used("serverlog")
use serverlog in 0
endif
select serverlog
append blank
replace timestamp with datetime(), logentry with plogtext
select &curarea
endproc

barrymavin
2014-12-04, 23:11
Don't forget to open the database too...