[Tutor] Purging/deleting the logfile with the logging module

Tony Cappellini cappy2112 at gmail.com
Wed Jan 31 02:44:05 CET 2007

I want to purge (empty) or delete the logfile created by the logging module,
and reopen it for a new session.

There is reference to a close function in the 2.3 docs, but I don't see how
I can purge or delete the file, since I don't have access to the file
 *close*( ) Tidy up any resources used by the handler. This version does
nothing and is intended to be implemented by subclasses. How can I
purge/delete & reopen the logfile?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070130/45b3f972/attachment.html 

More information about the Tutor mailing list