Quote Originally Posted by Kumosan View Post
Tell us more about your log file. Under linux you'd probably use the syslog daemon via the functions in syslog.h.

I doubt that this is portable.

If you want portable logging, you'd probably have to do it yourself using QTextStream and QFile.
My application reads some text file (encrypted one) which I decrypt it to load the data. Now what I want is to creat a log file which will help me to find out what error has occured and at what line in which file etc etc (If there is any errors) so that I can just have a look at the log file to see what is wrong and fix it immediately.

Is there a way in Qt to do that. If not can you show me a sample about how to do it using QTextStream and QFile????

Thanks