extended-email-log-route

Sends selected detailed log messages to email addresses.
3 followers

This extension extends CEmailLogRoute class, so it inherits most of its functionality, but, this extension adds more useful data to your log messages.

Requirements

  • Yii 1.1.13 (should work on prior versions but not tested)

Usage

  • Decompress on protected/extensions/
  • In protected/config/main.php in components section add:
'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'ext.EmailLogRoute.EmailLogRoute',
                    'emails' => array('user@your-domain.com'),
                    'subject' => 'Error in your server',
                    'sentFrom' => 'info@your-domain.com',
                ),
            ),
        ),

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension