This module is a log writer for Yii that will send all log messages to a Loggly input.
- php >= 5.2
- php5-curl extension
- Yii 1.1.13 (should work on prior versions but not tested)
Install using composer ( https://packagist.org/packages/opus-online/yii-loggly )
At the head of protected/config/main.php add:
Yii::setPathOfAlias('OpusOnline.Loggly', dirname(FILE) . '/../vendors/opus-online/yii-loggly');
In the components section add:
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class'=> '\OpusOnline\Loggly\Route',
'inputKey' => '<KEY>',
'finishRequest' => true,
'levels'=> 'error, warning, info',
'tag' => 'staging,php'
),
),
),