Mailing Exception logs in a live Grails webapp

前端 未结 3 540
有刺的猬
有刺的猬 2021-02-04 21:24

I\'d like my Grails web-app to send an e-mail for each exception that reaches the end-user.

Basically I\'m looking for a elegant way to achieve something equivalent to:<

3条回答
  •  我寻月下人不归
    2021-02-04 21:49

    Assuming you can do this from groovy, you'll want to use a logging framework such as log4j for this, which has loggers that can append log data to a database, send email, etc.

提交回复
热议问题