Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; '2.x': 0.05; 'used.': 0.07; 'python': 0.08; '>>>>': 0.09; 'confuse': 0.09; 'handlers': 0.09; 'kelly': 0.09; 'wrote:': 0.14; 'subject:python': 0.14; '"log"': 0.16; "doesn't.": 0.16; 'logging,': 0.16; 'subject:logging': 0.16; 'cc:addr:python-list': 0.17; 'received:74.125.82.44': 0.19; 'received:mail-ww0-f44.google.com': 0.19; 'header:In-Reply-To:1': 0.21; 'seems': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'import': 0.29; 'cc:addr:python.org': 0.30; 'from:charset:iso-8859-1': 0.33; 'header:User-Agent:1': 0.35; 'using': 0.35; 'message- id:@gmail.com': 0.36; 'received:google.com': 0.37; 'logging': 0.37; 'think': 0.38; 'received:74.125.82': 0.38; 'received:74.125': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'received:192.168.1': 0.40; '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=Yei9+Tqgu4tR5co52vt/thIbIsrKjBW0PsxLtQG+7L4=; b=YluP0zxxTSTfN+OU3FKSOBK37utygCTpsbr8Ka19FzTPj+Dyg+Qcs8yxkhTTF97TsF C7u3IITuAkng8HDT0BsrgcAHFEgcrCY3pd4Z9AISlVBAVnHtVSosfjduvdmuYuntjifA l16K1un2wClQ2UzkIbFT18nMPbU22d8enKJp4= 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=FbnYBplNafSMLTq+8hAXh99nC7NLOIlBCcOJFaHu/J8rZrm41tmGoz5Ymcj+KKNHbw aixa2lP263cRmnIhSlkWg39ouaIFWjTjgnnfDMXSPNRe3pZtiFw0HYo78jANVG6zwHNB UCIXDVQQxydhcp1cXWEwhLv74eK3rOKF8UuJk= Date: Thu, 19 May 2011 00:21:56 +0200 From: =?ISO-8859-1?Q?Rafael_Dur=E1n_Casta=F1eda?= 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 Subject: Re: python logging 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> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305757321 news.xs4all.nl 49045 [::ffff:82.94.164.166]:57249 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5749 On 19/05/11 00:10, Ian Kelly wrote: > 2011/5/18 Rafael Durán Castañeda: >> 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. > It seems to work without any configuration just as well as the root logger: > >>>> import logging >>>> logging.getLogger('foo').warning('test') > WARNING:foo:test > > Or am I misunderstanding you? 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"