I was just wondering what is the best way to log my server errors through email ?
error_log()
can indeed send log to an email address with limited possibilities, but was designed for error logs, when mail()
is design for email with more customization possibilities, but wasn't designed for errors in particular.
Can I encounter performances problems with one of them, what would be the best way ?