Does PHP have automatic built-in diagnostic page logging like that built into Ruby on Rails? (as opposed to log4j-type logging libraries)
That s开发者_开发技巧hows:
- page execution time duration
- query string and form parameters
- SQL activity
For a behind the scenes look at page execution?
You cannot compare RoR with php (framework vs language?). You can compare Ruby with php. And you can compare RoR with Symfony. And yes, symfony provides you with a debug toolbar with the 3 things you mentioned and more... So does Magento
Page execution time can come from Apache's access_log
(as will GET
request parameters), but there's no automatic logging for POST
data or SQL queries.
I am not sure about built-in solution but here is nice profiler:
- Quick PHP Profiler
精彩评论