Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.wiretrip.org!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; '2.x': 0.05; 'python': 0.08; 'ah,': 0.09; 'handlers': 0.09; 'subject:python': 0.14; '"log"': 0.16; 'regression': 0.16; 'subject:logging': 0.16; 'such.': 0.16; 'surprising': 0.16; 'cc:addr:python-list': 0.17; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'documented': 0.23; 'received:209.85.161.46': 0.23; 'received:mail-fx0-f46.google.com': 0.23; "doesn't": 0.25; 'received:209.85.161': 0.26; "i'm": 0.27; 'message- id:@mail.gmail.com': 0.28; 'import': 0.29; 'cc:addr:python.org': 0.30; 'do.': 0.30; 'it.': 0.31; 'seem': 0.32; 'change.': 0.32; 'using': 0.35; 'received:google.com': 0.37; 'change': 0.37; 'received:209.85': 0.37; 'logging': 0.37; 'could': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:charset:iso-8859-1': 0.82; 'rafael': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=kq6mz2oZqszphSNVbM9uj2x2vSfCCv+mMZNMoyENYhg=; b=M8yFWCQKxkdyrlYjhIMH4RDyKbVug7GOHXLIiRv35qizzejpwO8NzwB5NyREICkFxP BK2GDc05a7sSz8yrQVsJJeomnryj0N1PPQt0L8lMNIXARfz+5IRCZKrL96udY5r0Lcvf aKylYLg7es0psOcV8QL31cn6PT8DCFrdHge8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=qcy01wOcdXJzpWVaJKPethg3BKmnHpxFYAnqkbV+4vOQfLLPY9cf2srV2H6ok5ChA6 mHqXewUPxUawDexDrBGupb9UUf7LGtRMUelrVGhYlgbYIJWMA7Uge0Aez6MfdG3QakN4 Yi9v7qJrZT1qNWFEmWk+WvFSUHglF+VX5q25A= MIME-Version: 1.0 In-Reply-To: <4DD44684.1080504@gmail.com> References: <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> <4e923309-d4a5-4fc2-9fdf-b4350e11eab8@z37g2000vbl.googlegroups.com> <4DD42129.7030705@gmail.com> <4DD4419F.5080400@gmail.com> <4DD44684.1080504@gmail.com> From: Ian Kelly Date: Wed, 18 May 2011 16:37:52 -0600 Subject: Re: python logging To: =?ISO-8859-1?Q?Rafael_Dur=E1n_Casta=F1eda?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305758303 news.xs4all.nl 49181 [::ffff:82.94.164.166]:45194 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5752 2011/5/18 Rafael Dur=E1n Casta=F1eda : > Are you using python 2.x or 3.x? At python 2.7 using: > > import logging > logging.getLogger('log').warning('test') > > I got: > > No handlers could be found for logger "log" Ah, that's it. I was using Python 2.5. Using 2.7 I get the same result that you do. Still, it's a surprising change that doesn't seem to be documented as such. I'm not sure whether it's a regression or an intentional change.