[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Help me understand this logging config
From: Roy Smith <roy () panix ! com>
Date: 2011-08-30 12:39:26
Message-ID: roy-7F52BC.08392630082011 () news ! panix ! com
[Download RAW message or body]
In article <mailman.566.1314696279.27778.python-list@python.org>,
Peter Otten <__peter__@web.de> wrote:
> Roy Smith wrote:
>
> > I'm using django 1.3 and python 2.6.
>
> Isn't dictConfig() new in 2.7? It looks like that is what you are using...
Oh, my, it turns out that django includes:
# This is a copy of the Python logging.config.dictconfig module,
# reproduced with permission. It is provided here for backwards
# compatibility for Python versions prior to 2.7.
Comparing the django copy to lib/logging/config.py from Python 2.7.2,
they're not identical. It's likely they grabbed something earlier in
the 2.7 series. I'll check 2.7.0 and 2.7.1 to see.
> I tried your setup with the django-specific handler replaced by another
> StreamHandler
> [...]
> and got what
>
> $ python2.7 tmp_logging.py
> 2011-08-30 11:18:33,160: djfront.auth.facebook INFO <module> info-test
> $
>
> which seems to be what you expected. So I'm confused, too...
I'll need to dig deeper. Not that I realize this may not be a Python
issue per-se, I'll do some more experimentation and ask on the django
mailing list. Thanks for your help.
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic