CodeIgniter Forums
How can I log all PHP uncaught exceptions to a file? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: How can I log all PHP uncaught exceptions to a file? (/showthread.php?tid=88856)



How can I log all PHP uncaught exceptions to a file? - ReneG - 11-22-2023

Hello,
How can I log all PHP uncaught exceptions to a file?
I have my error_log variable set to a directory and display_errors=off in the php.ini and also in index.php, but none of these types of errors get logged to the file I specified. 
I created the file and gave it permission. 
Any idea what else I can try?


RE: How can I log all PHP uncaught exceptions to a file? - kenjis - 11-22-2023

See CodeIgniter Error Logs.
https://codeigniter4.github.io/CodeIgniter4/installation/troubleshooting.html#codeigniter-error-logs