Mail on error |
[eluser]FinalFrag[/eluser]
Hi all, I want to extend the error reporting class to send me an e-mail when an error happens. I think I would have to create a class MY_Log to extend the CI_Log class. I have the following code in MY_Log: Code: <? This doesn't seem to work. Could anyone explain to me why? I also altered my autoload.php to automaticly load the Log class (but I'm not sure if this is really necessary)... I'm really confused to which class I have to extend and which functions to overwrite as it seems like there is a global function 'error_log' and a function 'write_log' in the Log class. Which one should I extend? Hope anyone can help me out on this one... Thnx in advance, FinalFrag
[eluser]yelirekim[/eluser]
did you set the log_threshold in config.php? it won't even try to log things in the first place if you don't have it set to something besides zero.
[eluser]dobbler[/eluser]
Any luck with this? I need to set up the same thing.. |
Welcome Guest, Not a member yet? Register Sign In |