Forum Navigation
How to append log to file?
Posted: 12/18/07 17:28:40My scenario is this: I have a CGI program that needs to log what is happening on the server. I tried File.append and the logging functions. They both fail. The file is truncated everytime and also some mess is going on when there are more often requests. I tried to implement a file lock, but Tango's time functions are driving me mad... I can't understand how to use them effectively. For example I want to do something like
if(filepath.create<Clock.now-3000) filepath.remove; //3000 ms
It compiles but who know what it is doing... Anyway. Please give me some suggestion(s) how to accomplish my task with Tango.
Thanks, bobef