In CodeIgniter, How Can I Have PHP Error Messages Emailed to Me?

前端 未结 4 1044
忘掉有多难
忘掉有多难 2021-01-31 21:57

I\'d like to receive error logs via email. For example, if a Warning-level error message should occur, I\'d like to get an email about it.

How can I get tha

4条回答
  •  野性不改
    2021-01-31 22:22

    Oh, another option is to get a logrotation application that supports emailing digests. Not sure what platform you are on, but you could just have something monitor the error_log file and send you updates, might not be as neat and certainly you would be limited to only information in the error_log. (error_log is Apache, CI has a /logs/ folder in system, and IIS has the Windows Events)

提交回复
热议问题