AttributeError: logging module bug ?
Peter Otten
__peter__ at web.de
Tue Dec 15 15:54:59 EST 2009
Peter wrote:
> on python 2.6 the following code raises an AttributeError:
>
> #!/usr/bin/env python
> import os.path as p
> import logging, logging.config
>
>
> class Logger(object):
> def load_config(self):
> logging.config.fileConfig(p.join(p.dirname(__file__),'logging.cfg'))
>
> logger = Logger()
> logger.load_config()
> What's the problem ?
Please provide the config file "logging.cfg" to ease debugging.
Peter
More information about the Python-list
mailing list