Skip to content

Email Codigniter error message as its written to the log files

License

Notifications You must be signed in to change notification settings

liaan/codeigniter-email-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

codeigniter-email-log

Extend the Log class so that all errrors/warning etc is also emailed after written to the log file

Copy MY_Log.php to application/core and rename if needed to your subclass_prefix

WARNING .. Makes the site slow if debug logging is enabled as each message is sent individually so only enable log_email on production servers where logging set to log only true errors

In config.php file of your CI_ENV add:

$config['log_email'] = true;  
$config['log_email_to_address'] = 'info@vpx.co.za';  
$config['log_email_from_address'] = 'info@vpx.co.za';  
$config['log_email_from_name'] = 'CodeIgniter Log';  
$config['log_email_subject'] = 'My Site Error';  

About

Email Codigniter error message as its written to the log files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages