![]() |
CI4 Newbie, no log files being created in writeable/logs dir? - 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: CI4 Newbie, no log files being created in writeable/logs dir? (/showthread.php?tid=90414) |
CI4 Newbie, no log files being created in writeable/logs dir? - xanabobana - 03-14-2024 Hello, I'm having trouble with my new install of CI4. No logs are being created in the writeable/logs directory. I have logging level set to 4 in the Logger.php and double checked that the directory has write permissions. What else do I need to check? RE: CI4 Newbie, no log files being created in writeable/logs dir? - kenjis - 03-14-2024 How did you know "No logs are being created"? RE: CI4 Newbie, no log files being created in writeable/logs dir? - xanabobana - 03-18-2024 No logs were being written to the writable/logs folder. I found that I needed a customPaths.php file to specify the location of the writable folder <?php // cannot extend BaseConfig and be used for $writableDirectory - too early in bootstrap sequence // cannot be overridden in .env namespace Config; class CustomPaths { // this cannot be redefined in .env - used too early in bootstrap sequence public string $writableDirectory = '/users/v/m/vmc/dev-root/xana/writable'; } ?> |