hand made class with destructor and the logging module

climb65 climb65 at free.fr
Wed Oct 27 16:21:47 CEST 2010


I have a handmade class within a python program which uses the logging 
This class has a destructor which is expected to log something into my log 
file if a crash occurs.
Well, the destructor works well but during the crash, python has already 
closed the log file and the reference to the Logger has been set to None. 
So, I can't log anything!

How is it possible to solve this problem?


More information about the Python-list mailing list