alextar / yii2-firephp-query-profiler
profile db queries using firephp
Installs: 1 277
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- firephp/firephp-core: >=0.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-29 20:01:41 UTC
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');