yii-logentries CLogRoute for logging to the LogEntries.com service

  1. Requirements
  2. Usage
  3. Resources

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

0 0
2 followers
0 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Logging
Tags: logging
Developed by: igray
Created on: Oct 28, 2013
Last updated: 10 years ago

Related Extensions