AttributeError: logging module bug ?

Peter Otten __peter__ at web.de
Wed Dec 16 04:04:44 EST 2009


Peter wrote:

>>> What's the problem ?
>>>      
>> Please provide the config file "logging.cfg" to ease debugging.
>>
>> Peter
>>    
> Here it is, thanks for having a look
> Peter

Unfortunately I still can't reproduce your problem. With a minimal file

./of/logger.py

from logging import Formatter

class RootFormatter(Formatter):
    pass
class ModuleFormatter(Formatter):
    pass
class ClassFormatter(Formatter):
    pass
class DataFormatter(Formatter):
    pass

(and an empty ./of/__init__.py) your initial script runs without error. If 
you want external help please 

(1) make sure that you provide all necessary files needed to reproduce the 
error

(2) remove as much of the code as possible that does not contribute to the 
problem. (This is also an effective debugging technique)

Peter



More information about the Python-list mailing list