2017 © Pedro Peláez
 

yii2-extension yii2-logentries

Logentries log target for Yii2 framework

image

kop/yii2-logentries

Logentries log target for Yii2 framework

  • Friday, August 21, 2015
  • by kop
  • Repository
  • 2 Watchers
  • 6 Stars
  • 5,744 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Yii2 Logentries

Yii2 Logentries (Y2LE) adds a LogentriesTarget class that sends Yii2 log messages to the Logentries log management service., (*1)

Latest Stable Version Code Climate Scrutinizer Code Quality Version Eye License, (*2)

Requirements

  • Yii 2.0
  • PHP 5.4

Installation

The preferred way to install this extension is through Composer., (*3)

Either run, (*4)

php composer.phar require kop/yii2-logentries "dev-master", (*5)

or add, (*6)

"kop/yii2-logentries": "dev-master", (*7)

to the require section of your composer.json file., (*8)

Usage

Note: It works slow! This log target sends each log entry to the Logentries service in the TCP mode, means it blocks the further execution of the PHP application. Make sure you understand this before using this log target., (*9)

Add Logentries target to your log component config:, (*10)

return [
    ...
    'components' => [
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                'file' => [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
                'logentries' => [
                    'class' => 'kop\y2le\LogentriesTarget',
                    'levels' => ['error', 'warning', 'info'],
                    'categories' => ['application'],
                    'logToken' => '<<< YOUR KEY HERE >>>',
                ],
            ],
        ],
    ],
    ...
];

Configuration

The log destination is specified via $logToken property. Please refer to Logentries docs for PHP applications for more details., (*11)

Report

License

yii2-logentries is released under the MIT License. See the bundled LICENSE.md for details., (*12)

Resources

The Versions

21/08 2015

dev-master

9999999-dev http://kop.github.io/yii2-logentries/

Logentries log target for Yii2 framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ivan Koptiev

log yii2 yii logentries target

21/08 2015

1.0.2

1.0.2.0 http://kop.github.io/yii2-logentries/

Logentries log target for Yii2 framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ivan Koptiev

log yii2 yii logentries target

20/10 2014

v1.0.1

1.0.1.0 http://kop.github.io/yii2-logentries/

Logentries log target for Yii2 framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ivan Koptiev

log yii2 yii logentries target

02/07 2014

v1.0.0

1.0.0.0 http://kop.github.io/yii2-logentries/

Logentries log target for Yii2 framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ivan Koptiev

log yii2 yii logentries target