ZFDebug Toolbar How to log custom messages?

柔情痞子 提交于 2019-12-13 08:50:50

问题


How will I log custom messages or log output in ZFDebug toolbar?

I have googled and unable to find an example. I came to know that there is something called Text plugin. But i don't know how to use it. Can any one give me an example?


回答1:


Adding for example and error message is simple as:

ZFDebug_Controller_Plugin_Debug_Plugin_Exception::errorHandler($level, $message, $file, $line);

When you want to add a new tab to ZFDebug just write your own plugin to it. And then include written class to options, when initalizing ZFDebug.



来源:https://stackoverflow.com/questions/10545217/zfdebug-toolbar-how-to-log-custom-messages

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