Log db requests |
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?
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 )
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 )
|
Welcome Guest, Not a member yet? Register Sign In |