Welcome Guest, Not a member yet? Register   Sign In
Debug Exception crashing the app
#3

(11-03-2021, 05:50 AM)John_Betong Wrote: Check the error_reporting(); setting in the following file:

./app/Config/Boot/production.php

I don’t know and cannot check on my tablet if  CodeIgniter4 redirects the error log file but it should show on phpinfo(); otherwise try the following:

PHP Code:
//Use ini_get to get the error_log directive.
$errorLogLocation ini_get('error_log');

//Print out the location of the error log.
echo 'Your error log is located at: ' $errorLogLocation

The error_log location can easily be modified by using the following:
PHP Code:
$newLog ini_set(‘error_log’“NEW-LOCATION.log’);
// BEWARE:
// $newLog may return a bool FALSE value if the file cannot be written 

thank you for reply,
I'm sorry but i don't understand why i should make any change in the production config file while everything works fine in production mode ??? ... what i wish to do is to disable the Debug\Exception() thing in the development mode, but from what i've read so far it is not possible for the moment.
Reply


Messages In This Thread
Debug Exception crashing the app - by tomasoma - 11-03-2021, 02:32 AM
RE: Debug Exception crashing the app - by tomasoma - 11-03-2021, 06:42 AM
RE: Debug Exception crashing the app - by kenjis - 11-03-2021, 07:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB