hand made class with destructor and the logging module
climb65
climb65 at free.fr
Wed Oct 27 10:21:47 EDT 2010
Hello,
I have a handmade class within a python program which uses the logging
module.
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?
Thanks.
More information about the Python-list
mailing list