Yii Wrapper for Logentries.com PHP Class
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
vendors
.gitmodules
ELogEntriesLogRoute.php
LICENSE
README.md

README.md

yii-logentries

Yii Wrapper for Logentries.com PHP Class

To use:

  1. Download files to into Yii's extensions folder
  2. Get the le_php files (they are a git submodule, so git submodule init follosed by git submodule update)
  3. Generate an API key at Logentries.com
  4. Add the log route into the config file log section as follows:
'log'=>array(
  'class'=>'CLogRouter',
   'routes'=>
   array(
     array(
       'class'=>'CFileLogRoute',
       'levels'=>'error, warning',
        ),
     array(
        'class' => 'ext.yii-logentries.ELogEntriesLogRoute',
        'leToken' => 'TOKEN HERE',
        ),			
    ),
),
  1. Add the path to the yii-logentries/vendors to the import section in the main.conf e.g.
    'import'=>array(
    		'application.models.*',
    		'application.components.*',
            'ext.ELogEntriesLogRoute.vendors.lephp.*',
    ),