Use this module to generate and store logs of errors on your site, option to send logs via email using the module JVMail