codeexpert / yii2-firephp
Yii框架的FirePHP扩展。
该软件包的官方仓库似乎已不存在,因此该软件包已被冻结。
dev-master / 0.1.x-dev
2014-04-23 05:33 UTC
Requires
- php: >=5.4.0
- firephp/firephp-core: >=0.4.0
This package is not auto-updated.
Last update: 2023-02-18 07:50:17 UTC
README
YII2的FirePHP日志目标
如果不起作用,请尝试在index.php中添加 "ob_start ()"。
使用方法
composer.json
"require": {
"codeexpert/yii2-firephp": "0.1.*@dev"
},
配置文件
$config = [
'components' => [
'log' => [
'targets' => [
'firephp' => [
'class' => 'codeexpert\log\FirePHPTarget',
]
],
],
],
];
任何地方
\Yii::info('Hello, I am info message', 'test1');
\Yii::warning('Hello, I am warning message', 'test2');
\Yii::error('Hello, I am error message', 'test3');
\Yii::info(array('a'=>'b', 'c'=>'d'), 'array test');