Created
January 11, 2014 01:27
-
-
Save pasamio/8365793 to your computer and use it in GitHub Desktop.
Quick line to put in Joomla debug plugin to output queries to a log file. Put just after the $log = $db->getLog() line.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
file_put_contents('/tmp/joomla_querylog_' . time() . '.log', implode("\n", array_map(function ($item) { return str_replace("\n", " ", $item); }, $log))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment