Re: Can I get logging.FileHandler to close the file on each emit?

2012-08-29 Thread rikardhulten
On Wednesday, August 29, 2012 2:48:57 PM UTC+2, Mark Lawrence wrote: > On 29/08/2012 11:18, wrote: > > > I use logging.FileHandler (on windows) and I would like to be able to > > delete the file while the process is running and have it create the file > > again on next log event. > > > > > >

Can I get logging.FileHandler to close the file on each emit?

2012-08-29 Thread rikardhulten
I use logging.FileHandler (on windows) and I would like to be able to delete the file while the process is running and have it create the file again on next log event. On windows (not tried linux) this is not possible because the file is locked by the process, can I get it to close the file aft