Posted: Wed Mar 26, 2008 6:18 am Post subject: Logtofile
simple txt command:
Code:
use file;
program txtlog(kto)
LogToFile("e:/FTP/gm/LOGI/gracze/aaa.log", "aaaa",LOG_DATETIME);
endprogram
works just fine
but when i use LogToFile("e:/FTP/gm/LOGI/gracze/aaa.log", "aaaa",LOG_DATETIME); in any package error comes out: "Unable to open file: aaa.log"
How to allow a package to log data anywhere I want (i can log data in some package)
For example. I have logging package 'logger' All functions needed for logging stuff goes through this pkg. In fileaccess.cfg i've to add something like this:
Imho you can't give a LogToFile command with a directory outside the pol packages, e.g. a named directory like "harddisk:\dir". If you are a linux user, write a crontab to move these logs into your wanted directory. I personally found no other way yet.