Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; 'backwards': 0.07; 'python': 0.08; 'oh,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '2.6,': 0.16; '[gcc': 0.16; 'expected.': 0.16; 'from:addr:vinay_sajip': 0.16; 'linux2': 0.16; 'message- id:@post.gmane.org': 0.16; 'roy': 0.16; 'sajip': 0.16; 'see.': 0.16; 'series.': 0.16; 'subject:logging': 0.16; 'vinay': 0.16; 'wrote:': 0.16; 'subject:Help': 0.17; '>>>': 0.18; 'versions': 0.23; 'module,': 0.23; 'pm,': 0.24; 'aug': 0.24; 'shell': 0.24; "i'm": 0.27; 'project,': 0.28; 'skip:p 30': 0.28; 'import': 0.28; 'django': 0.29; 'skip:( 20': 0.29; 'config': 0.30; 'equivalent.': 0.30; 'apr': 0.32; 'earlier': 0.32; 'to:addr:python-list': 0.33; "i'll": 0.34; 'header:User-Agent:1': 0.34; 'copied': 0.34; 'header:X-Complaints-To:1': 0.35; 'charset:us-ascii': 0.36; 'comparing': 0.37; 'using': 0.37; 'but': 0.37; 'something': 0.37; 'received:org': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'from:addr:yahoo.co.uk': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'skip:d 20': 0.39; "it's": 0.40; 'provided': 0.60; 'more': 0.60; 'your': 0.61; 'here': 0.65; '30,': 0.74; 'subject:this': 0.74; 'includes:': 0.77; '2.7.': 0.84; '2.7.1': 0.84; 'reproduced': 0.84; 'ships': 0.91; 'permission.': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Vinay Sajip Subject: Re: Help me understand this logging config Date: Fri, 2 Sep 2011 09:58:29 +0000 (UTC) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 82.152.15.113 (Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.21) Gecko/20110830 Ubuntu/10.04 (lucid) Firefox/3.6.21) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314957525 news.xs4all.nl 2504 [2001:888:2000:d::a6]:56117 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12628 On Aug 30, 1:39 pm, Roy Smith wrote: > Oh, my, it turns out that django includes: > > # This is a copy of the Pythonlogging.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. They're not identical, but should be functionally equivalent. I'm not able to reproduce your results: I copied the "loggers" part of your config into a Django 1.3 project, and from a manage.py shell session: Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import logging >>> logger = logging.getLogger('djfront.auth.facebook') >>> logger.debug('Debug') >>> logger.info('Info') 2011-09-02 10:51:13,445 INFO djfront.auth.facebook Info >>> ... as expected. Since it's Python 2.6, it should be using the dictconfig which ships with Django 1.3. Regards, Vinay Sajip