How to send error messages to e-mail?
This article explains how to make your Saurus CMS website send you all error messages by e-mail as soon as they happen. Error messages in the context of this article are Site Log errors. Sending them to e-mail does not delete the messages, you can still view them all through website admin section: open up the "Tools > Site Log" page.
Step 1. Set up error notifications
Setting up error notifications is done through website admin section: open up the "System > Configuration" page and locate the "Logging" section. For error notifications to be sent to e-mail, they have to be enabled, meaning option "Enable site log" must be set to "Yes". In next section, "Error notifications", the e-mail address must be set. E-mails can also be sent to all superusers, but it's probably best to keep it on just specific e-mail addresses. Activation must be set to 'pageload' or 'cronjob'. Pageload means that when one notification is sent a time delay of 1 hour is put into place. After it expires, next notification will be sent out when someone visits your website. Cronjob is explained below.
Step 2. Set up cronjob (optional)
Setting up cronjob is usually done from command line on server. If you have access to it then you must add the following code to the cronjob list. If you don't know exactly what you're doing, contact your server administrator or hosting provider.
The following code sends error notifications in every 10 minutes.
*/10 * * * * cd /[your website path]/admin/; php auto_error_notifications.php
Error notification emails are sent out only in case there were errors since the last time the notifications were sent out.