Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'passes': 0.05; 'handlers': 0.09; 'jeff': 0.13; 'handlers.': 0.16; 'sajip': 0.16; 'subject:logging': 0.16; 'vinay': 0.16; 'cc:addr:python-list': 0.16; 'subject:Help': 0.17; 'wrote:': 0.18; 'subject:problem': 0.19; '(which': 0.19; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'wrong?': 0.23; 'cc:2**0': 0.26; 'url:mailman': 0.27; "i'm": 0.28; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'url:listinfo': 0.32; 'skip:l 30': 0.32; 'tue,': 0.32; 'idea': 0.32; 'test': 0.34; 'setting': 0.34; 'root': 0.34; 'thank': 0.35; 'something': 0.35; 'url:python': 0.35; 'received:209.85.160': 0.36; 'checks': 0.37; 'passed': 0.37; 'received:google.com': 0.37; 'subject:with': 0.37; 'received:209.85': 0.38; 'event': 0.38; 'doing': 0.38; 'should': 0.38; 'received:209.85.160.46': 0.39; 'received:mail-pw0-f46.google.com': 0.39; 'url:org': 0.39; 'received:209': 0.39; 'header:Received:6': 0.61; 'simple': 0.61; 'levels': 0.64; 'anything.': 0.71; 'warning.': 0.84; 'to:addr:yahoo.co.uk': 0.91 Received-SPF: pass (google.com: domain of dreadpiratejeff@gmail.com designates 10.68.223.33 as permitted sender) client-ip=10.68.223.33; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dreadpiratejeff@gmail.com designates 10.68.223.33 as permitted sender) smtp.mail=dreadpiratejeff@gmail.com; dkim=pass header.i=dreadpiratejeff@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Y90HqmyoX+/3Rc7WlVi5Dv92vZz2dqrVH4ytriA/w/A=; b=WHWY5GgUGFo5/A4WEd+2F+YFnLAy4XhKZ1MioP/HxnVgqMTRhj6SQAGWI12XFpLxC3 tXLrPJMq8SWaV9RcLMy5xgmsgSlNFRsV+d1zzDHpZOL9MfsMFu1cQtxzloDt0aGE07hW MCUWkJuo0rxbHZsWJeZ9lJqQCd8Jh1g3c0VBB1/0f0BOGf5F3Hk3sHUhBHJror34zYEf OtUGzpzinbNiMkMGUP0KpIexDjATtHVazxH+ffCUXn03sLi4Vf+ae3WWgZiutrJ5toqL UjaVtrGQfhjKV8GwZJ0VIpNoLCaEr/X/n6TzcdoYKNEUCB1JP054sECRDmD5mMjs023E J6Nw== MIME-Version: 1.0 In-Reply-To: References: From: J Date: Tue, 6 Mar 2012 12:03:16 -0500 Subject: Re: Help me with weird logging problem To: Vinay Sajip 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331053419 news.xs4all.nl 6895 [2001:888:2000:d::a6]:35340 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21276 On Tue, Mar 6, 2012 at 11:19, Vinay Sajip wrote: > On Mar 6, 4:09=A0pm, J wrote: >> >> Any idea what I'm doing wrong? > > Levels can be set on loggers as well as handlers, and you're only > setting levels on the handlers. The default level on the root logger > is WARNING. A logger checks its level first, and only if the event > passes that test will it be passed to the handlers (which will also > perform level tests). > > So, a logger.setLevel(logging.DEBUG) should be all you need to add > before logging anything. > > Regards, > > Vinay Sajip > -- > http://mail.python.org/mailman/listinfo/python-list Thank you very much, Vinay :) I thought it was something simple like that I had overlooked or misundersto= od. Cheers, Jeff