ZF-10326: An easy way to log any SQL query in a specified logfile

Issue Type: New Feature Created: 2010-08-17T06:30:56.000+0000 Last Updated: 2012-11-20T21:37:37.000+0000 Status: Open Fix version(s): Reporter: Mathieu Decaffmeyer (mathi) Assignee: None Tags: - Zend_Db

  • Zend_Log

Related issues: Attachments:


It would be nice to have a simple way to have all the SQL query strings that have been executed, in a logfile which you could specify. Additionally, be able to activate in an easy way the profiler for each SQL query. So each log would include the SQL query string and possibly the profiling of that query.


Posted by Konr Ness (konrness) on 2010-09-02T22:33:36.000+0000

I'd be interested in working on this feature.

It would likely be Zend_Db_Profiler_Log and use Zend_Log for the writing. This way, it could be used for outputting via any number of log writers. Interestingly, this method could likely invalidate the need for Zend_Db_Profiler_Firebug since Zend_Log already has a firebug writer.

Perhaps this should have a proposal written up for it.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.