https://github.com/candasm/cprofiletofilelogroute
Yii Profile file log route
https://github.com/candasm/cprofiletofilelogroute
Last synced: over 1 year ago
JSON representation
Yii Profile file log route
- Host: GitHub
- URL: https://github.com/candasm/cprofiletofilelogroute
- Owner: candasm
- Created: 2013-04-15T09:05:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-15T09:52:52.000Z (about 13 years ago)
- Last Synced: 2025-02-08T14:12:28.404Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CProfileToFileLogRoute
======================
CProfileToFileLogRoute
This component for write yii profiling messages to file.
CProfileToFileLogRoute.php add in import list under config.file
Log component settings:
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CProfileToFileLogRoute',
'logFile' => 'profiling.log',
),
),
),
Useing(Same as profiling):
Yii::beginProfile('sleep');
sleep(1);
Yii::endProfile('sleep);