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


Groups > comp.lang.python > #33137

logging, can one get it to email messages over a certain level?

From tinnews@isbd.co.uk
Newsgroups comp.lang.python
Subject logging, can one get it to email messages over a certain level?
Date 2012-11-11 17:42 +0000
Message-ID <ql45n9-lli.ln1@chris.zbmc.eu> (permalink)

Show all headers | View raw


I'm sure this must be possible but at the moment I can't see how to do it.

I want to send an E-Mail when the logging module logs a message above
a certain level (probably for ERROR and CRITICAL messages only).

I.e. I want some sort of hook that will be called when these messages
are logged (I can do the sendmail bit OK, I've got code that does that).

-- 
Chris Green

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


Thread

logging, can one get it to email messages over a certain level? tinnews@isbd.co.uk - 2012-11-11 17:42 +0000
  Re: logging, can one get it to email messages over a certain level? Steve Howell <showell30@yahoo.com> - 2012-11-11 09:56 -0800
    Re: logging, can one get it to email messages over a certain level? tinnews@isbd.co.uk - 2012-11-12 09:44 +0000
      Re: logging, can one get it to email messages over a certain level? Peter Otten <__peter__@web.de> - 2012-11-12 11:54 +0100
        Re: logging, can one get it to email messages over a certain level? tinnews@isbd.co.uk - 2012-11-12 11:36 +0000

csiph-web