Error notification on plone 4

前端 未结 4 819
小鲜肉
小鲜肉 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:22

    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

    event-log-custom =
      
        path ${buildout:directory}/var/log/${:_buildout_section_name_}.log
        level INFO
      
      
        from server@here.com
        to admin@company.com
        subject "[Zope alert - ${:_buildout_section_name_}]"
        smtp-server localhost
        level error
        
    

提交回复
热议问题