Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!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.063 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'output': 0.11; 'subject:python': 0.14; 'bye': 0.16; 'subject:logging': 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; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'received:209.85.161': 0.26; 'message- id:@mail.gmail.com': 0.28; "won't": 0.30; 'cc:addr:python.org': 0.30; 'received:google.com': 0.37; 'received:209.85': 0.37; 'logging': 0.37; 'url:docs': 0.37; 'url:python': 0.38; 'anything': 0.38; 'url:org': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'addition': 0.60; 'link': 0.64; 'to:charset:iso-8859-1': 0.82; 'so:': 0.84; '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=vTWVVoHynqhh7SXU8QAIn/u5+JsBh3PGPvyYD/Hc97c=; b=wIpQfI/J6R5v5h6QQLzTT7Pv0/MEa41PeCpeiYMgHcqosfKg86W9vq20baS+O8O/u/ t8B9AU+3cr5FFMdaBZ2+Ka2vBkHbfMrOsk10b2SiOeJ0AJs5dsHrkFJD3c7lvSJxKt/N J5qKfqqIJaFL11KEjtpEFiHIe9SsbBHzEJTH4= 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=vJ7ub1bHpy/cQNR1U0V47nvpEGgNWcaUNH7nGQ+hSQ/orxo4v9qUjnnuTWNhgDc5KP DRbII1RF5rXgWQSjuPPPtNvEbmymq8IMzBXV2b3aua5yP80fXtDSnGvHSHXOI13PyCmU KnU0GxNevl0rexRfBuv4x8h6dnKyD9cd3rvNs= MIME-Version: 1.0 In-Reply-To: <4DD42129.7030705@gmail.com> References: <049755c7-4238-438a-9b9b-9b3b7a3ebc87@s2g2000yql.googlegroups.com> <4e923309-d4a5-4fc2-9fdf-b4350e11eab8@z37g2000vbl.googlegroups.com> <4DD42129.7030705@gmail.com> From: Ian Kelly Date: Wed, 18 May 2011 15:29:47 -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: 23 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305754218 news.xs4all.nl 49176 [::ffff:82.94.164.166]:58327 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5743 2011/5/18 Rafael Dur=E1n Casta=F1eda : > 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 =A0show 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