How to enable SQL output to log file with Zend_Db?

China☆狼群 提交于 2019-12-02 07:40:09

问题


I wonder if this possible with Zend_Db, but I am looking for something like SQL query logging similar to how Hibernate does it, where it shows you what SQL it generates in the log file.


回答1:


You can use Zend_Db_Profiler for this task.

Tutorial Zend Framework 1.6 with Profiler and FireBug



来源:https://stackoverflow.com/questions/2894077/how-to-enable-sql-output-to-log-file-with-zend-db

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!