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


Groups > comp.lang.python > #36786

Re: Making a logging handler that produces context.

Date 2013-01-14 15:26 +0100
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
Subject Re: Making a logging handler that produces context.
References <50F3E60D.2000503@rece.vub.ac.be> <kd0u6t$k6q$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.497.1358173566.2939.python-list@python.org> (permalink)

Show all headers | View raw


Op 14-01-13 13:38, Peter Otten schreef:
> It turns out the logic of the above is correct. The problem is that the 
> handler has to see the INFO-level records while the filter() method has to 
> reject them. The following configuration seems to achieve that:

I see, I thought trowing away logrecords of too low a level was also
done by the filter method.
But if I now understand correctly logrecords of too low a level are
thrown away earlier and
don't even reach the handle method.

Thanks for the insight.

-- 
Antoon Pardon

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


Thread

Re: Making a logging handler that produces context. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-01-14 15:26 +0100

csiph-web