Użytkownik Jacek Kałucki napisał:
> Hi,
>
> I receive exception message on application startup:
>
> Traceback (most recent call last):
>     File "alio.py", line 7, in<module>
>       import dabo
>     File "C:\Python25\lib\site-packages\dabo\__init__.py", line 136, in
> <module>
>       logging.config.fileConfig(logConfFile)
>     File "C:\Python25\lib\logging\config.py", line 85, in fileConfig
>       _install_loggers(cp, handlers)
>     File "C:\Python25\lib\logging\config.py", line 229, in _install_loggers
>       logger.addHandler(handlers[string.strip(hand)])
> KeyError: 'fileHandler'
>    

Solution:  you must remove spaces from key definitions in configuration 
file.

[loggers]
keys=root,daboLog,dbActivity

[handlers]
keys=consoleHandler,fileHandler,dbHandler

[formatters]
keys=basicFormatter

[logger_root]
level=DEBUG
handlers=consoleHandler

[logger_daboLog]
level=DEBUG
handlers=consoleHandler,fileHandler
qualname=dabo.mainLog
propagate=0

-- 
Regards
Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to