CodeIgniter Forums

Full Version: sending profiler data to disk?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am having trouble with one section of my code. I have enabled the profiler and it can show where I am making too many sql queries. But it outputs to the screen. Is there a way to get the profiler to output to a file (for offline review)?
I'm not sure if this can help.

You can try to use this library.

  1. Configure the library by setting $logger to true.

  2. Set $threshold in app/Config/Logger.php to minimum 7.

Check logging files at ROOTPATH/writable/logs

Reminder; Using this library will change the default query toolbar and using logger for queries will consume a lot of data storage size.
there is many ways to check out this with easy ways