alextar/yii2-firephp-query-profiler
Composer 安装命令:
composer require alextar/yii2-firephp-query-profiler
包简介
profile db queries using firephp
README 文档
README
FirePHP log target for YII2
If it does not work, try adding "ob_start ()" in index.php
Usage
composer.json
"require": {
"codeexpert/yii2-firephp": "0.1.*@dev"
},
config file:
$config = [
'components' => [
'log' => [
'targets' => [
'firephp' => [
'class' => 'codeexpert\log\FirePHPTarget',
]
],
],
],
];
anywhere:
\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');
统计信息
- 总下载量: 1.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-08