How to enable error log?
If you get any error or want to debug anything, then enable the error log.
- Open \app\Config\Logger.php line #41 and change the line to: public $threshold = 5;
- Do the things where you got the error or what you want to check. Then find the log in \writable\logs\ directory.
- After solving the issue, you can revert the error log settings and set the $threshold = 0 again.
How to enable Development mode?
Sometimes, you may not get error logs in the log file. If you would like to see the errors, you can enable the development mode. It's not recommended in production. To enable the development mode, please follow this:
- Create a .env file in the root directory beside the app folder. Add the following content on the .env file:
CI_ENVIRONMENT = development
Note: Once you've completed the debugging, and if you don't want the development mode, just delete .env file.