Welcome Guest, Not a member yet? Register   Sign In
Log db requests
#1
Question 

I want to optimize the site for CI4, how to output all requests to the log file that are made when the site is opened?
Reply
#2

You could create and use CodeIgniter 4 Events for what you need done for logging.

SEE:
CodeIgniter 4 User Guide - Working with Databases - Database Events
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

You could also use:
PHP Code:
$tmp $db->getLastQuery(); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB