Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nathanejohnson/eprofilefilelogroute

Yii extension to log Profiling information to a file.
https://github.com/nathanejohnson/eprofilefilelogroute

Last synced: 26 days ago
JSON representation

Yii extension to log Profiling information to a file.

Awesome Lists containing this project

README

        

#Yii extension for logging profiling data to a file.

This is mostly a copy and paste of CProfileLogRoute, but instead of extending CWebRoute, it extends CFileLogRoute.

Logs time / date stamps with millisecond precision.

##Requirements

Yii 1.1 or above

##Usage
Drop this class into your extensions directory, make sure that it's imported either explicitly

'import' => array('extensions.EProfileFileLogRoute')

or implicitly

'import' => array('extensions.*')

Here is an example configuration:

'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class'=>'EProfileFileLogRoute',
'categories' => 'application',
'logFile' => 'profile.log',
'groupByToken' => 'true',
'report' => 'summary'
),
),
),