Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'attribute': 0.07; 'subject:help': 0.08; 'hai': 0.16; 'received:172.18.0': 0.16; 'subject:Logging': 0.16; 'wanted.': 0.16; 'looked': 0.18; 'to:name :python-list@python.org': 0.22; 'case.': 0.24; 'logging': 0.26; 'header:In-Reply-To:1': 0.27; 'thanks!': 0.32; 'url:python': 0.33; 'could': 0.34; "didn't": 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.37; 'filter': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:unknown': 0.61 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=3f4U5fHrZLLPCzJ96ldNbjtja1zQ0ih230F6vdsLr5s= c=1 sm=1 a=CRTDazI5n6YA:10 a=7PYXob_7ZXMA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=8AHkEIZyAAAA:8 a=VlLTGPX3ERu2GGXGeKsA:9 a=CjuIK1q_8ugA:10 a=BkRsNfiH9m4A:10 a=jUAQuJLwbXUA:10 a=9R1A9RMc36QA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 From: "Joseph L. Casale" To: "python-list@python.org" Subject: RE: Logging help Thread-Topic: Logging help Thread-Index: AQHOjvko+rFMHSI0w0G4eaf1htQ1e5mD2nuAgAFe6pA= Date: Sun, 4 Aug 2013 16:06:47 +0000 References: <4de058e63b2c48468eb11a1a57210747@exch.activenetwerx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.0.200] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375632498 news.xs4all.nl 15879 [2001:888:2000:d::a6]:46281 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51927 >Oh hai - as I was reading the documentation, look what I found: > >http://docs.python.org/2/library/logging.html#filter > >Methinks that should do exactly what you want. Hi Wayne, I was too hasty when I looked at filters as I didn't think they could do what I wanted. Turns out a logging object sent the filter method will an exc_info attribute in my case. Thanks! jlc