achertovsky/yii2-loggly

This package is abandoned and no longer maintained. No replacement package was suggested.

Use loggly cloud log management service as log target within Yii2 apps.

0.2.0 2015-05-18 10:18 UTC

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.

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 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,
		],
	],
],

Resources