Basic recipe is configured to send all logs to syslog, which are accessible through the centralised logging system.

To send logs to email (in addition to syslog) add the following to your mysite/_config.php:

// log errors and warnings
SS_Log::add_writer(new SS_LogEmailWriter('admin@domain.com'), SS_Log::WARN, '<=');

Please note this is only able to capture events that occur after the Framework has bootstrapped successfully. PHP parse errors and segmentation faults are sent to the centralised logging system bypassing the SS_Log.

Was this article helpful?