Charles Bergmeier
Charles Bergmeier

Reputation: 83

How can I receive Play 2.0 debugging emails?

In the world of Python & Pylons, configuring email alerts for server crashes is fairly direct, via the configuration file:

email_to = [email protected]
error_email_from = [email protected]
smtp_server = smtp.sendgrid.net
smtp_username = myusername
smtp_password = mypassword
smtp_use_tls = false

I've been trying to set up the equivalent sort of debugging emails in a Play 2.1.2 project, to no success. I noticed Play used to have a fairly direct setup for this stuff back in version 1.0 (documented here). But the equivalent 2.0 documentation doesn't exist.

What is the proper way of setting up a play 2.0 project, so that my team receives an email every time the server crashes?

Thanks!

Upvotes: 2

Views: 71

Answers (1)

akkie
akkie

Reputation: 2543

Play Framework uses Logback as logging framework. So you can easily configure a SMTP appender to send errors per mail.

Upvotes: 1

Related Questions