Re: Logging to a file and closing it again properly (logging module)

2006-06-14 Thread Vinay Sajip
Christoph Haas wrote: > Thanks. That works great. I was looking for a way to close the log file > using logging.basicConfig but it appears that it's too much magic. > logging.getLogger() isn't really much more work but gives better > control. You may also need to close the handler - removeHandler

Re: Logging to a file and closing it again properly (logging module)

2006-06-14 Thread Christoph Haas
On Wed, Jun 14, 2006 at 12:29:22PM +0530, Amit Khemka wrote: > On 6/13/06, Christoph Haas <[EMAIL PROTECTED]> wrote: > >I have an application that is running in an endless loop processing an > >incoming queue. Every run is supposed to write a log file about the run > >and then close it again. While

Re: Logging to a file and closing it again properly (logging module)

2006-06-14 Thread Amit Khemka
On 6/13/06, Christoph Haas <[EMAIL PROTECTED]> wrote: > Evening, > > I have an application that is running in an endless loop processing an > incoming queue. Every run is supposed to write a log file about the run > and then close it again. While the 'logging' module is generally working > well (ev

Logging to a file and closing it again properly (logging module)

2006-06-12 Thread Christoph Haas
Evening, I have an application that is running in an endless loop processing an incoming queue. Every run is supposed to write a log file about the run and then close it again. While the 'logging' module is generally working well (even though the documentation makes me miss some proper examples ho