Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5753
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; 'default,': 0.07; 'python': 0.08; 'ah,': 0.09; 'handlers': 0.09; 'kelly': 0.09; 'wrong,': 0.09; '>>>': 0.12; 'win32': 0.12; 'subject:python': 0.14; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '"log"': 0.16; 'regression': 0.16; 'subject:logging': 0.16; 'such.': 0.16; 'surprising': 0.16; '\xa0using': 0.16; 'cc:addr:python-list': 0.17; 'once,': 0.19; '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; 'nov': 0.24; "doesn't": 0.25; 'received:209.85.161': 0.26; 'message- id:@mail.gmail.com': 0.28; 'import': 0.29; 'bit': 0.30; '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; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'more': 0.60; 'to:charset:iso-8859-1': 0.82; '2.7.1': 0.84; "\xa0i'm": 0.84 |
| 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=/DIlQQfSWule5A8z4KrVC4gNlkOTiDWzRfT1L2qPK2E=; b=Ytrxj2jbFKXeJBGPdgczvjyrWGAvD92/0LwWIzrxgCi64j8WtQ3zmDyA1V5xfAbX/a I+SfGxSlbGsCaf95dd17uNO3syMnXoSLgivN4HHAqaw0iVhiDEo9COXMkhkulLOFsRmi VqtJ026xWDCiGrJB6LKla7DHYPeBtb3RpMmNk= |
| 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=lUKUJXvVkNK+Er7IvOT4FndvUW84eL3Ul2SXfZIPsXk2rzYAzq7KhxeZJtLCbaJgg0 pzDQ7pqyDP1MyfWsD/rUIRr4/T/WT0CaBwNiF8VvVRN+du7nKsSE120zpbU8o9Sa+t9Z TG4JfifHGFKfXYZ03/5qSXyUO7TwRzLXY8h/s= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTi=mOh4DrNqqoo61j0-JfGT0cMPy5w@mail.gmail.com> |
| References | <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> <mailman.1725.1305672986.9059.python-list@python.org> <4e923309-d4a5-4fc2-9fdf-b4350e11eab8@z37g2000vbl.googlegroups.com> <4DD42129.7030705@gmail.com> <BANLkTi=faomiasrShV_Eho67etiF_b7H8Q@mail.gmail.com> <4DD4419F.5080400@gmail.com> <BANLkTi=J1R3jmJ65KeP++UMXeZr2WLYwxg@mail.gmail.com> <4DD44684.1080504@gmail.com> <BANLkTi=mOh4DrNqqoo61j0-JfGT0cMPy5w@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 18 May 2011 16:42:07 -0600 |
| Subject | Re: python logging |
| To | Rafael Durán Castañeda <rafadurancastaneda@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1781.1305758558.9059.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305758558 news.xs4all.nl 49177 [::ffff:82.94.164.166]:47966 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5753 |
Show key headers only | View raw
2011/5/18 Ian Kelly <ian.g.kelly@gmail.com>:
> 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.
I was wrong, it's more complicated than that.
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger('log').warning('test')
No handlers could be found for logger "log"
>>> logging.warning('test')
WARNING:root:test
>>> logging.getLogger('log').warning('test')
WARNING:log:test
Apparently, getLogger() is unconfigured by default, but if you just
use the root logger once, then they magically get configured.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python logging Fei <mail2fei@gmail.com> - 2011-05-17 13:55 -0700
Re: python logging Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-05-18 00:00 +0200
Re: python logging Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-17 16:55 -0600
Re: python logging Fei <mail2fei@gmail.com> - 2011-05-17 18:09 -0700
Re: python logging Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-05-18 21:42 +0200
Re: python logging Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-18 15:29 -0600
Re: python logging Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-05-19 00:01 +0200
Re: python logging Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-18 16:10 -0600
Re: python logging Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-18 15:27 -0700
Re: python logging Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-05-19 00:21 +0200
Re: python logging Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-18 16:37 -0600
Re: python logging Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-18 16:42 -0600
Re: python logging Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-05-19 02:27 -0700
csiph-web