Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5746
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder5.news.weretis.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rafadurancastaneda@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'used.': 0.07; 'confuse': 0.09; 'kelly': 0.09; 'output': 0.11; 'wrote:': 0.14; 'subject:python': 0.14; 'bye': 0.16; "doesn't.": 0.16; 'logging,': 0.16; 'subject:logging': 0.16; 'received:74.125.82.174': 0.16; 'received:mail-wy0-f174.google.com': 0.16; 'cc:addr:python-list': 0.17; 'before.': 0.19; 'work,': 0.20; 'header:In-Reply-To:1': 0.21; 'seems': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'works.': 0.23; "won't": 0.30; 'cc:addr:python.org': 0.30; 'from:charset:iso-8859-1': 0.33; 'header:User-Agent:1': 0.35; 'message-id:@gmail.com': 0.36; 'received:google.com': 0.37; 'logging': 0.37; 'url:docs': 0.37; 'think': 0.38; 'url:python': 0.38; 'received:74.125.82': 0.38; 'received:74.125': 0.38; 'anything': 0.38; 'url:org': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'received:192.168.1': 0.40; 'addition': 0.60; 'link': 0.64; 'show': 0.66; 'so:': 0.84; 'rafael': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=vYBVc7q6/Rz/zMuOn3aio0stWn4Nhh28RkH832OL+a4=; b=qR5Vkw1uBYOt5NBAMApIQpssqnlZaUJMDBY2By0qyzh+Lh3OHLdpM0iUudHHXZcGue 4BrridC5LjM60d3VP2aemLbej0XNzPF88h510mD4oXeKaMd3PRqNEiAyUhJytkFge6LJ XaWLpXvEL/tZbPGjeANjCHBy38Rz7B5ttnE00= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=tENBBaGiMk/xovfLsF0P0hHkc32NOlqgrebu/ut3qGyzy5Ca8flH8Hk/W3Z/vLeUCT 5NxfwzgdruM1hwNTZQW/FBRSInsixsZoeCA2+7qftXA6JkeZ/ma4DB6tT6p7p2MdB96B 1ozFkEYgw1lDsAkUixrSkXkV3cAbghB1GCTXs= |
| Date | Thu, 19 May 2011 00:01:03 +0200 |
| From | Rafael Durán Castañeda <rafadurancastaneda@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 |
| MIME-Version | 1.0 |
| To | Ian Kelly <ian.g.kelly@gmail.com> |
| Subject | Re: python logging |
| 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> |
| In-Reply-To | <BANLkTi=faomiasrShV_Eho67etiF_b7H8Q@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| 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.1775.1305756070.9059.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305756070 news.xs4all.nl 49177 [::ffff:82.94.164.166]:39650 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5746 |
Show key headers only | View raw
On 18/05/11 23:29, Ian Kelly wrote:
> 2011/5/18 Rafael Durán Castañeda<rafadurancastaneda@gmail.com>:
>> That's not exactly how it works. You can use logging without any
>> configuration and the default output will be console. In addition default
>> logging level is warning, so:
>>
>> logging.info("Some text")
>>
>> won't show anything and
>>
>> logging.warning("Other text")
>>
>> will show:
>>
>> WARNING:root:Other text
>>
>> Please check the link I gave before.
>>
>> Bye
> Odd. That seems to work, but it contradicts the documentation at:
>
> http://docs.python.org/howto/logging.html#what-happens-if-no-configuration-is-provided
I think you are confuse because of you are looking at advanced logging,
where getLogger is being used. Simple logging works without any
configuration, getLogger doesn't.
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