CodeIgniter Forums
FileHandler class not found, whenever i try to log something - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: FileHandler class not found, whenever i try to log something (/thread-78005.html)



FileHandler class not found, whenever i try to log something - ant100984 - 11-18-2020

Fatal error: Uncaught Error: Class 'CodeIgniter\Log\Handlers\FileHandler' not found in ....... /system/Log/Logger.php:366

I have just started a new project with CodeIgniter 4.0.4 and only configured the base url and set the environment do 'development'. Everything seems working fine except for the logging. I got the message above when i try to log something with the log_message function. I am not sure if i am doing something wrong. My environment is Apache on CentOS. Thanks.