CodeIgniter Forums
Log broken queries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Log broken queries (/showthread.php?tid=67082)



Log broken queries - Iwanow - 01-13-2017

I need to log every broken query to logs file in my application. I can't use hook, because it will log every query, I need to log only broken queries. There's also option $db['default']['db_debug'] = TRUE, but it shows information about queries on user's screen (not in logs file). I need to put somehow in logs file same information which user see in case of use $db['default']['db_debug'] = TRUE. Is there any simple solution to do that?