<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Have your software email you when it is in trouble with Python logging</title>
	<atom:link href="http://blog.p2presearch.com/2008/06/29/have-your-software-email-you-when-it-is-in-trouble-with-python-logging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.p2presearch.com/2008/06/29/have-your-software-email-you-when-it-is-in-trouble-with-python-logging/</link>
	<description>whats happening in the peersphere</description>
	<lastBuildDate>Tue, 22 Sep 2009 13:22:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Niall O'Higgins</title>
		<link>http://blog.p2presearch.com/2008/06/29/have-your-software-email-you-when-it-is-in-trouble-with-python-logging/comment-page-1/#comment-13</link>
		<dc:creator>Niall O'Higgins</dc:creator>
		<pubDate>Tue, 01 Jul 2008 12:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.p2presearch.com/?p=16#comment-13</guid>
		<description>Roderic:  I agree completely that you need to be careful with it.  In this case, I suggest keeping it firmly in mind that logging.critical() == sending an email.

In the case where you really want to know about things at this log level, and you aren&#039;t going to get a huge amount of mail (say since the application has exited directly after), it works very well in practice.</description>
		<content:encoded><![CDATA[<p>Roderic:  I agree completely that you need to be careful with it.  In this case, I suggest keeping it firmly in mind that logging.critical() == sending an email.</p>
<p>In the case where you really want to know about things at this log level, and you aren&#8217;t going to get a huge amount of mail (say since the application has exited directly after), it works very well in practice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur</title>
		<link>http://blog.p2presearch.com/2008/06/29/have-your-software-email-you-when-it-is-in-trouble-with-python-logging/comment-page-1/#comment-12</link>
		<dc:creator>Artur</dc:creator>
		<pubDate>Tue, 01 Jul 2008 10:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.p2presearch.com/?p=16#comment-12</guid>
		<description>Installing my own exception handler is very useful, I haven&#039;t known how to do it, thanks! When using SMTPHandler it is also very useful to customize the subject, eg. you can put level name of logged message:


class _MySMTPHandler(logging.handlers.SMTPHandler):

    def getSubject(self, record):
        from system import contextInfo
        return &#039;%s %s&#039; % (record.levelname, str(contextInfo()))</description>
		<content:encoded><![CDATA[<p>Installing my own exception handler is very useful, I haven&#8217;t known how to do it, thanks! When using SMTPHandler it is also very useful to customize the subject, eg. you can put level name of logged message:</p>
<p>class _MySMTPHandler(logging.handlers.SMTPHandler):</p>
<p>    def getSubject(self, record):<br />
        from system import contextInfo<br />
        return &#8216;%s %s&#8217; % (record.levelname, str(contextInfo()))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roderic aharon</title>
		<link>http://blog.p2presearch.com/2008/06/29/have-your-software-email-you-when-it-is-in-trouble-with-python-logging/comment-page-1/#comment-10</link>
		<dc:creator>roderic aharon</dc:creator>
		<pubDate>Sun, 29 Jun 2008 21:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.p2presearch.com/?p=16#comment-10</guid>
		<description>I&#039;ve never seen email from a logger *not* be a huge mistake. At least, not in something like web software. One minor bug means your mail server no longer works.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never seen email from a logger *not* be a huge mistake. At least, not in something like web software. One minor bug means your mail server no longer works.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
