Re: __del__ and logging

2005-05-02 Thread flupke
Vinay Sajip wrote: > flupke nonexistingdomain.com> writes: > > >>Hi, >> >>i have a class and a class attribute log which is a logger object. In >>the __del__() function i want to log a message but it fails even if i >>use self.__class__.log. >> >>The error i get is this: >>Traceback (most rece

Re: __del__ and logging

2005-04-29 Thread Vinay Sajip
flupke nonexistingdomain.com> writes: > > Hi, > > i have a class and a class attribute log which is a logger object. In > the __del__() function i want to log a message but it fails even if i > use self.__class__.log. > > The error i get is this: > Traceback (most recent call last): >Fil

__del__ and logging

2005-04-29 Thread flupke
Hi, i have a class and a class attribute log which is a logger object. In the __del__() function i want to log a message but it fails even if i use self.__class__.log. The error i get is this: Traceback (most recent call last): File "C:\Python24\lib\logging\__init__.py", line 712, in emit