CodeIgniter Forums
issue with logging on CI3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: issue with logging on CI3 (/showthread.php?tid=84893)



issue with logging on CI3 - richb201 - 11-20-2022

I am not getting my CI error log. I have set the following in config.php:
$config['log_threshold'] = 4;
$config['log_file_permissions'] = 0644;
Everything else dealing with logging is default. Any place else I need to turn on logging?


RE: issue with logging on CI3 - richb201 - 11-22-2022

I guess logging doesn't work in CI3 anymore.


RE: issue with logging on CI3 - kenjis - 11-22-2022

You can test logging.

PHP Code:
log_message('error''log test'); 

And check the logs folder permission.


RE: issue with logging on CI3 - richb201 - 11-28-2022

I was looking on the client rather than the server.
Here is the error: Cannot use object of type stdClass as array
here is the code that is creating it.
$query=$this->db->query($sql, array($_SESSION['userid'], $_SESSION['campaign'],$bus_comp,$taxyear));
$row=$query->result();
$id=$row[0]['id'];

should this be $id=$row[0]=>id?
If not, what is wrong with it?


RE: issue with logging on CI3 - richb201 - 11-28-2022

turned out to be -> not =>

All solved!