yii-logentries

CLogRoute for logging to the LogEntries.com service
2 followers

LogEntries.com is a log management service with some nice features such as filtering and alerting added in. It has a free tier which enables most of the features with limited storage and retention.

This extension allows logging to the service directly via Yii's logging mechanism.

Requirements

Yii 1.1.13 or above)

Usage

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.*',
    ),

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet
  • Yii Version:
  • License: New BSD License
  • Developed by: igray
  • Category: Logging
  • Votes: No votes yet
  • Downloaded: 0 times
  • Created on: Oct 28, 2013
  • Last updated: Oct 28, 2013
  • Tags: logging