[New-bugs-announce] [issue7181] No logging when two loggers with same qualname

Cristian Romanescu report at bugs.python.org
Wed Oct 21 14:50:22 CEST 2009

New submission from Cristian Romanescu <cristiroma at yahoo.com>:

Hello, everyone. I think I have found a bug in the python logging module
when configured via fileConfig

Scenario 1:
When using the configuration file attached to this ticket and test case
below, there should be logging in three places: 
* console (info and error)
* 'butterfly.log' (info and error)
* 'butterfly-error (error)

In third no output is ever written.

Scenario 2:
Another odd thing is that when using
keys=root,errorLogger,normalLogger - root and normalLogger works
correct, errorLogger not,
but if I use keys=root,normalLogger,errorLogger - root and errorLogger
works fine, normalLogger not. So there is a link between order of logger

Scenarion 3:
If I change to one of the loggers qualname=butterfly.test then both
loggers works fine.

Platform: Windows XP + SP2
Python: 2.5.4

Test case:
import logging
from logging import config

log = logging.getLogger('butterfly.test')


  2009-10-21 15:38:48 INFO butterfly.test info
  2009-10-21 15:38:48 ERROR butterfly.test error

  2009-10-21 15:40:32 INFO butterfly.test test.py:<module>:7 info
  2009-10-21 15:40:32 ERROR butterfly.test test.py:<module>:8 error


P.S. This is my first bug submission, tried to google about it. Please
don't shoot.


components: Library (Lib), Windows
files: logging.cristiroma.config
messages: 94310
nosy: cristiroma
severity: normal
status: open
title: No logging when two loggers with same qualname
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file15172/logging.cristiroma.config

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list