CodeIgniter Forums
log_message entries question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: log_message entries question (/showthread.php?tid=86117)



log_message entries question - paulkd - 01-11-2023

Hi, I've
  • downloaded a fresh copy of 4.3.0
  • updated .env with CI_ENVIRONMENT = development and logger.threshold = 7
  • added log_message('info', 'for your information'); to the end of app\Config\Boot\development.php
  • browsed to the welcome page
and writable\logs\log-2023-01-11.log contains 3 entries.

Does this seem excessive?


RE: log_message entries question - kenjis - 01-13-2023

(01-11-2023, 01:42 PM)paulkd Wrote: Does this seem excessive?

What do you mean?


RE: log_message entries question - paulkd - 01-13-2023

Hi kenjis,

I expected a single entry for a single page request.

I found the cause. It was in app\Config\Boot\development.php just above my log_message call.

PHP Code:
defined('CI_DEBUG') || define('CI_DEBUG'true); 

I changed the value to false.