spacedealer/yii2-loggly

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

Installs: 22 508

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 3

Open Issues: 3

Type:yii2-extension

0.2.0 2015-05-18 10:18 UTC

This package is auto-updated.

Last update: 2024-10-29 00:26:51 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 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