Re: Making a logging handler that produces context.

Discussion in 'Python' started by Antoon Pardon, Jan 14, 2013.

  1. 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
     
    Antoon Pardon, Jan 14, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VS_NET_DEV
    Replies:
    2
    Views:
    3,839
    jenny
    May 25, 2004
  2. =?Utf-8?B?U3VuU21pbGU=?=
    Replies:
    0
    Views:
    722
    =?Utf-8?B?U3VuU21pbGU=?=
    Jan 10, 2006
  3. Gal Aviel
    Replies:
    1
    Views:
    485
    Gerard Flanagan
    Mar 4, 2008
  4. Antoon Pardon
    Replies:
    0
    Views:
    146
    Antoon Pardon
    Jan 14, 2013
  5. Peter Otten
    Replies:
    0
    Views:
    139
    Peter Otten
    Jan 14, 2013
Loading...

Share This Page