ZFDebug工具栏如何记录自定义消息? [英] ZFDebug Toolbar How to log custom messages?

查看:107
本文介绍了ZFDebug工具栏如何记录自定义消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ZFDebug工具栏中记录自定义消息或日志输出?

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

我已经google了,无法找到一个例子。我知道有一些叫做Text插件的东西。但我不知道如何使用它。有谁能给我一个例子?

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?

推荐答案

添加示例和错误消息很简单:

Adding for example and error message is simple as:

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

当您要向ZFDebug添加新标签时,只需将自己的插件写入。然后在ZFDebug启动时包括书面课程。

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.

这篇关于ZFDebug工具栏如何记录自定义消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆