Looger object only prints "ERROR"s
jeanmichel at sequans.com
Thu Sep 24 16:10:13 CEST 2009
Jean-Michel Pichavant wrote:
> daved170 wrote:
>> hi everybody,
>> I took your adviced and used the logging object.
>> I copied the example in 220.127.116.11 - "using logging in multiple
>> modules" from
>> unfortunattly it only prints to file the ERROR level's messages and
>> ignore the others. I tried to change the level with SETLEVEL but it
>> didn't help.
>> Any idea? thanks,
> Diffcult to say without a bunch of code.
> I would say that your FileHandler formatter has something wrong.
> Please provide the code where you're adding this handler to you logger
> Try to change the format to "%(asctime)s - %(levelname)s -
> %(message)s" for testing purpose and tell us if you still have issues.
> /logging/ is the way to go, keep going :o)
Ignore my post, I just misread your description.
Verify you don't have filters attached to your handlers.
If you have a hierarchy of loggers, make sure their level are all
For instance if you have a 'foo.bar' logger, you may set 'foo.bar' level
to DEBUG, logs can still be filtered by 'foo' if this logger level is
More information about the Python-list