plon 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" ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以轻松地为 Zope 配置内置电子邮件通知,但我们发现添加 mailinglogger 包使电子邮件更易于管理。
该软件包添加了:
plone.recipe .zope2instance 构建配方支持开箱即用的邮件记录器;只需在您的
[instance]
部分中定义一个mailinglogger
变量并包含 mailinglogger Egg:该包对于我们在大型集群上的价值是无价的,我们在其中为每个实例配置额外的变量被纳入主题;我们可以直接在主题中看到问题发生在哪个实例上。
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.
The package adds:
The
plone.recipe.zope2instance
buildout recipe supports mailinglogger out of the box; simply define amailinglogger
variable in your[instance]
part and include the mailinglogger egg: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.
配置邮件记录器记录在 http://pypi.python.org/pypi/plone。 Recipe.zope2instance 但我认为电子邮件日志通知内置于最近的 Zope2 版本中,因此您现在应该将以下内容添加到您的
[instance]
部分:(示例来自 http://myzope.kedai.com.my/blogs/kedai/44)
Configuring mailing-logger is documented at http://pypi.python.org/pypi/plone.recipe.zope2instance but I think that email log notification is built into recent Zope2 releases, so you should now add the following to you
[instance]
section:(example from http://myzope.kedai.com.my/blogs/kedai/44)
http://pypi.python.org/pypi/collective.logbook 也很方便。
http://pypi.python.org/pypi/collective.logbook is handy too.
您需要将电子邮件通知程序添加到 buildout.cfg 中的事件日志自定义中。不幸的是,无法将其附加到现有的日志记录配置中,但以下内容将模仿 plone.recipe.zope2instance 对事件日志所做的操作
You need to add an email-notifier to your event-log-custom in buildout.cfg. Unfortunately there's no way to append it to your existing logging configuration but the following will mimic what plone.recipe.zope2instance does for the event log anyway