Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 827 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 827 Bytes

Yii Loggly

This module is a log writer for Yii that will send all log messages to a Loggly input.

Requirements

  • php >= 5.2
  • php5-curl extension
  • Yii 1.1.13 (should work on prior versions but not tested)

Usage

Decompress put Loggly folder on protected/extensions/ In protected/config/main.php in components section add:

    'log' => array(
        'class' => 'CLogRouter',
        'routes' => array(
                array(
                    'class'=>'ext.Loggly.LogglyRoute',
                    'inputKey' => '<put here your input key>',
                    'finishRequest' => true,
                    'levels'=>'error, warning',
                ),
        ),
    ),

Resources