Been looking at db_debug and stuff like that, but I don’t find and obvious way to log all database queries to a file.
In fact I wan’t only to log any query that modifies the database.
Any suggestions on how to achieve this?
All my application code uses actice record so I was thinking of extending that class, so the methods that imply update, insert, delete would log the SQL query automtically. But since the active record class is not a library, I don’t believe I can extend it in the application/libraries folder the standard way.
How can I avoid modifying the CodeIgniter source and still achieve this?
An I don’t want to rely on manualy adding logging statements in the controller code itself.
