alextar / yii2-firephp-query-profiler
使用FirePHP进行数据库查询分析
dev-master / 0.1.x-dev
2015-04-08 12:48 UTC
Requires
- php: >=5.4.0
- firephp/firephp-core: >=0.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-28 17:49:09 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');