Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51927

RE: Logging help

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 <jcasale@activenetwerx.com>
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" <jcasale@activenetwerx.com>
To "python-list@python.org" <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> <alpine.DEB.2.02.1308030757260.2301@gilgamesh>
In-Reply-To <alpine.DEB.2.02.1308030757260.2301@gilgamesh>
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 <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.184.1375632498.1251.python-list@python.org> (permalink)
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

Show key headers only | View raw


>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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Logging help "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-08-04 16:06 +0000

csiph-web