Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

BTW I just tested on PyPy. The following program:

import logging.config
import sys

d = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'stream': 'ext://sys.stdout',
        }
    },
    'root': {
        'level': 'DEBUG',
    }
}

logging.config.dictConfig(d)
logging.debug('%s', sys.version)

prints:

vinay@eta-natty:~/projects/scratch$ python dctest.py
DEBUG:root:2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) 
[GCC 4.5.2]
vinay@eta-natty:~/projects/scratch$ 
~/pypy-c-jit-43780-b590cf6de419-linux/bin/pypy dctest.py 
DEBUG:root:2.7.1 (b590cf6de419, Apr 30 2011, 02:00:38)
[PyPy 1.5.0-alpha0 with GCC 4.4.3]

----------
status: pending -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12718>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to