Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Yii extension to log Profiling information to a file.
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
EProfileFileLogRoute.php
README.md

README.md

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'
            ),
        ),
    ),
Something went wrong with that request. Please try again.