Re: [Gambas-user] Application logging using SHELL

2011-01-20 Thread vikram
Thank you both for the replies. I am going to try using SHELL. Regards, Vikram Nair -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand m

Re: [Gambas-user] Application logging using SHELL

2011-01-19 Thread Bruce Bruen
On Wednesday, January 19, 2011 09:05:10 pm vikram wrote: > Could this cause the application to be a resource hog? Couldn't see why. I use SHELL extensively for different reasons and have so far found it to be efficient. But for what you are attempting I would just like to add one thing. As soon

Re: [Gambas-user] Application logging using SHELL

2011-01-19 Thread Demosthenes Koptsis
here is an example i did. if you like it you can use it. --- ' Gambas class file PUBLIC hLog AS Stream PUBLIC sFilename AS String = User.Home &/ ".MyLog.txt" PUBLIC sLogEntry AS String PUBLIC SUB Form_Open() hLog = OPEN sFilename FOR APPEND END PUBLIC SUB Button1_Click() sLogE

[Gambas-user] Application logging using SHELL

2011-01-19 Thread vikram
Hi, I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the things my application does, for instance events like forms opening, errors can be logged. I am thinking of using the SHELL with echo command to write to a log file. For example, using SHELL i would use: SHELL "echo