0.1releasedLog Notifications

Send an email of new errors which appear within the error log since the last run

Clone URLhttps://github.com/jonmifsud/log_notifications.git

Add as a submodulegit submodule add https://github.com/jonmifsud/log_notifications.git extensions/log_notifications --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNoNo0.1NoNoNoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Log Notifications

Sends an email to the desegnated addresses with error messages found within the Symphony logs since the last run. Log notifications supports both usual cron as well as poor man's cron and frequency settings can be set through the config.

Cron Setup

Set up a cron tab at your desires frequency on log_notification_cron.php found within the extension. The cron does not require running through HTTP but can be run directly through cli. Kindly note that the configuration has to be properly set for emails to go out, and if a cron is set to run every minute, the frequency setting within the config can be used to adjust the sending frequency without editing the cron settings.

Config Options

'log_notifications' => array(
    'frequency' => '1 minute', // supports strtotime phrases
    'poor_mans_cron' => 'yes', // if set to no emails are only sent if a cron is set up
    'include_notice' => 'no', // if you would like to include notices within the email
    'recipients' => '{your_admin_email}', // the person(s) who will recieve the email (comma separated)
    'subject' => '{email_subject}', // email subject so that you can filter/identify error messages
    'reply_to_name' => '{reply_to_name}', // could be used to reply to the dev team / client
    'reply_to_email' => '{reply_to_email}', // could be used to reply to the dev team / client
),

Version history

Requires Symphony 2.3

  • Initial Release