Welcome Guest, Not a member yet? Register   Sign In
Logging Mysql Queries
#5

[eluser]fedeisas[/eluser]
A few weeks ago I ran into the very same problem. I wanted to log every query of each request, to benchmark and optimize some pieces of the site. After researching a little bit, I came up with my own solution. I've posted it here.

Also, I have modified my Log Library, in order to be able to write my own, separate, log files. Codeigniter writes his own, messy, log, and I write other files called database-20110528.php or cron020110528.php.

The important thing here is that CI stores every query (and time) in the main $CI object.

Let me know if you need more help.

Happy coding!


Messages In This Thread
Logging Mysql Queries - by El Forum - 05-20-2011, 09:51 AM
Logging Mysql Queries - by El Forum - 05-20-2011, 01:19 PM
Logging Mysql Queries - by El Forum - 05-20-2011, 02:54 PM
Logging Mysql Queries - by El Forum - 05-20-2011, 08:00 PM
Logging Mysql Queries - by El Forum - 05-28-2011, 07:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB