How to get error logs via email?
I want to receive error logs via email. For example, if any error message should occur on my website , i want to get an email about it.

How can i achieve it through php code?
How to get error logs via email?
===

I want to receive error logs via email. For example, if any error message should occur on my website , i want to get an email about it.

How can i achieve it through php code?