achertovsky / yii2-loggly
Use loggly cloud log management service as log target within Yii2 apps.
Installs: 914
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Open Issues: 0
Type:yii2-extension
Requires
- ext-curl: *
- yiisoft/yii2: *
Requires (Dev)
- phpunit/phpunit: 4.6.*
This package is auto-updated.
Last update: 2022-06-21 20:11:42 UTC
README
This extensions provides support for Loggly as log target for Yii2 applications. It is partially based on the yii 1.* extension yii-loggly by Alexey Ashurok.
Requirements
- php >= 5.4
- php5-curl extension
- Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist achertovsky/yii2-loggly "*"
or add
"achertovsky/yii2-loggly": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
'log' => [ 'targets' => [ 'loggly' => [ 'class' => 'spacedealer\loggly\Target', 'customerToken' => 'your_customer_token', 'levels' => ['error', 'warning', 'info', 'trace'], 'tags' => ['console', 'staging'] 'enableIp' => false, 'enableTrail' => true, 'enableTrace' => false, ], ], ],