profilelogroute Does what CProfileLogRoute does, but logs to a file instead of to the page.

  1. Requirements
  2. Usage
  3. Resources

Logs 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'
                ),
            ),
        ),

Resources

0 0
2 followers
431 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Logging
Developed by: boingolover
Created on: Apr 11, 2014
Last updated: 4 years ago

Downloads

show all

Related Extensions