Appending a log file and see progress as program executes

2007-05-30 Thread Karim Ali
Hi, I am writing a program that will take several days to execute :) and would like to append to a log file but be able to open that file at any time and see the errors that have occured. So this is what I am doing: -- flog = open('out.log', 'a')

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Matteo
On May 30, 1:03 pm, Karim Ali [EMAIL PROTECTED] wrote: Hi, I am writing a program that will take several days to execute :) and would like to append to a log file but be able to open that file at any time and see the errors that have occured. So this is what I am doing:

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Grant Edwards
On 2007-05-30, Karim Ali [EMAIL PROTECTED] wrote: Hi, I am writing a program that will take several days to execute :) and would like to append to a log file but be able to open that file at any time and see the errors that have occured. So this is what I am doing:

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Diez B. Roggisch
Karim Ali schrieb: Hi, I am writing a program that will take several days to execute :) and would like to append to a log file but be able to open that file at any time and see the errors that have occured. So this is what I am doing: --

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Matteo
On May 30, 1:29 pm, Matteo [EMAIL PROTECTED] wrote: - Write an autoflush class: class AutoFlush: def __init__(self, stream): self.stream = stream def write(self, text): self.stream.write(text) self.stream.flush() ... flog=open('out.log','a')

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Steve Holden
Diez B. Roggisch wrote: Karim Ali schrieb: [...] install cygwin bash, and use tail out.log I think Diez meant tail -f out.log regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb

Re: Appending a log file and see progress as program executes

2007-05-30 Thread Diez B. Roggisch
Steve Holden schrieb: Diez B. Roggisch wrote: Karim Ali schrieb: [...] install cygwin bash, and use tail out.log I think Diez meant tail -f out.log I did. Thanks. diez -- http://mail.python.org/mailman/listinfo/python-list