关于plone 4的错误通知 [英] Error notification on plone 4

查看:72
本文介绍了关于plone 4的错误通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想在plone 4中声明错误时收到电子邮件通知.

I just want to have email notification when an error is declared in plone 4.

关于产品或任何使用方法"的任何想法吗?

Any ideas of product or any "how-to" ?

谢谢

推荐答案

您可以轻松配置Zope的内置电子邮件通知,但是我们发现添加了

You can easily configure the built-in email notification for Zope, but we found that adding the mailinglogger package makes the emails a lot more managable.

该软件包添加:

  • 已发送电子邮件的可自定义和动态主题行
  • 带有可配置标头的电子邮件,便于过滤
  • 防洪措施,以确保发送的电子邮件数量不会过多
  • 支持需要身份验证的SMTP服务器
  • 可配置的日志条目过滤

plone.recipe.zope2instance扩展配方支持开箱即用的mailinglogger.只需在您的[instance]部分中定义一个mailinglogger变量,并包含mailinglogger鸡蛋:

The plone.recipe.zope2instance buildout recipe supports mailinglogger out of the box; simply define a mailinglogger variable in your [instance] part and include the mailinglogger egg:

[instance]
recipe = plone.recipe.zope2instance
eggs +=
    mailinglogger
# Other options go here
mailinglogger =
  <mailing-logger>
    level warning
    flood-level 100000
    smtp-server localhost
    from logger@example.com
    to error-receiver@example.com
    subject [ServerName Error] [%(hostname)s] %(levelname)s - %(line)s
  </mailing-logger>

对于较大的集群,该程序包对我们来说是无价的,因为在该集群中,我们为每个实例配置其他变量以包含在主题中;我们可以直接在主题中查看问题发生在什么情况下.

The package has been invaluable for us on larger clusters, where we configure additional variables per instance to be included in the subject; we can see what instance the problem occurred on directly in the subject.

这篇关于关于plone 4的错误通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆