Error notification on plone 4

前端 未结 4 816
小鲜肉
小鲜肉 2021-02-08 23:00

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

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

Thanks

4条回答
  •  旧巷少年郎
    2021-02-08 23:27

    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:

    • customisable and dynamic subject lines for emails sent
    • emails sent with configurable headers for easy filtering
    • flood protection to ensure the number of emails sent is not excessive
    • support for SMTP servers that require authentication
    • configurable log entry filtering

    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 =
      
        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
      
    

    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.

提交回复
热议问题