spacedealer/yii2-loggly Use loggly cloud log management service as log target within Yii2 apps.

logloggly

Loggly Extension for Yii2

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.

Build Status SensioLabsInsight Dependency Status

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 spacedealer/yii2-loggly "*"

or add

"spacedealer/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,
        ],
    ],
],

Resources

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.2.0 is the latest of 2 releases



BSD-3-Clause license
Stats
2 github stars & 3 github forks
19 downloads in the last day
249 downloads in the last 30 days
14867 total downloads