I would like to use the CI profiler as a tool to audit the application. However, obviously, in this case I do not want the output to be displayed on the page, but rather written to db.
I thought I could connect to the profiler, capture the relevant details (query, uri_string, etc.) and send them to the table in db.
I could extend the profiler class to send data to db, but this does not exclude the output to the screen. From time to time, I would also like to use a profiler, so re-writing the output class is undesirable.
Any ideas appreciated.
What I have finished is creating a library and copylasagna Profiler.php into it to change as needed.
source share