问题
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