I see now.
LOGINFO($FILE,$STRING).

You could just write a log file like this.
Fe:
Code:
  
If Open(1,"\\SERVER\NETLOGON\Database\logon.txt",5) = 0
WriteLine(1, @ProductType + "," + @day + "," + @time + "," + @lserver + "," + @ipaddress0 + "," + @WKSTA + "," + @userid + "," + @PrimaryGroup + Chr(13)+Chr(10))
EndIf



And on and on with macros and stuff. Maybe after, schedule a process to import it to a database.

Another tip:
There will be a moment wich you might consider using a main script (maybe encrypted in the future) from where you call all the functions you add. That way you can keep the order.
_________________________
Life is fine.