Keyerror addhandler

Steven Macintyre steven at
Mon Apr 20 09:50:29 CEST 2009

Hi Diez,

I am using 2.4, could that be the cuase of your issue below. 

Ideally, I would like to stay with the 2.4 version and based on two
tutorials, this was what I came up with 


Steven Macintyre schrieb:
> Hi all,
> I'm wondering if anyone can assist me with this as I am very confused
> it now.
> I am getting the following error;
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/logging/", line 191, in fileConfig
>     logger.addHandler(handlers[hand])
> KeyError: 'handler_mylogfileHandler'

For me, that fails with

mac-dir:tmp deets$ python2.5
Traceback (most recent call last):
   File "", line 6, in <module>
line 84, in fileConfig
     handlers = _install_handlers(cp, formatters)
line 149, in _install_handlers
     klass = eval(klass, vars(logging))
   File "<string>", line 1, in <module>
NameError: name 'RotatingFileHandler' is not defined
mac-dir:tmp deets$


More information about the Python-list mailing list